forked from Tribler/tribler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Build Cross Deb | ||
on: workflow_dispatch | ||
|
||
jobs: | ||
armv7_job: | ||
runs-on: ubuntu-22.04 | ||
name: Build on ${{ matrix.distro }} ${{ matrix.arch }} | ||
strategy: | ||
matrix: | ||
include: | ||
- arch: aarch64 | ||
distro: ubuntu22.04 | ||
steps: | ||
- name: Check-out repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'true' | ||
fetch-tags: 'true' | ||
- name: Setup npm | ||
uses: actions/setup-node@v4 | ||
- name: Build npm | ||
shell: bash | ||
run: | | ||
cd src/tribler/ui/ | ||
npm install | ||
npm run build | ||
rm -rf node_modules | ||
- uses: uraimo/run-on-arch-action@v2 | ||
name: Run commands | ||
id: runcmd | ||
with: | ||
arch: aarch64 | ||
distro: ubuntu22.04 | ||
githubToken: ${{ github.token }} | ||
dockerRunArgs: | | ||
--volume "${PWD}:/tribler" | ||
env: | | ||
GITHUB_TAG: '8.0.1' | ||
shell: /bin/sh | ||
install: | | ||
apt-get update -q -y | ||
apt-get install -q -y --allow-downgrades alien cpio=2.13+dfsg-7 devscripts fakeroot gir1.2-gtk-4.0 libgirepository1.0-dev rpm python3-pip libcairo2-dev | ||
run: | | ||
# TODO: Put this inside /./usr/share/tribler/lib/ of data.tar.zst | ||
cp /lib/aarch64-linux-gnu/libcrypt.so.1 /usr/local/bin/libcrypt-06cd74a6.so.2 | ||
cd /tribler | ||
python3 -m pip install --upgrade -r build/requirements.txt | ||
python3 -m pip install meson ninja | ||
export PATH="/usr/local/bin:$PATH" | ||
./build/debian/makedist_debian.sh | ||
cd build/debian | ||
apt-get install -y --fix-broken ./tribler_8.0.1_all.deb | ||
timeout 10s tribler -s || true | ||
cat /tmp/*tribler*.log | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.distro }} ${{ matrix.arch }} Build | ||
path: | | ||
build/debian/*.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters