Skip to content

Commit

Permalink
WIP: Cross-compile deb
Browse files Browse the repository at this point in the history
  • Loading branch information
qstokkink committed Oct 11, 2024
1 parent 55b1e30 commit 431cc77
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 1 deletion.
63 changes: 63 additions & 0 deletions .github/workflows/build_cross_deb.yml
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
3 changes: 2 additions & 1 deletion build/win/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ def get_freeze_build_options():
"excludes": excluded_packages,
"include_files": included_files,
"include_msvcr": True,
'build_exe': 'dist/tribler'
'build_exe': 'dist/tribler',
"bin_excludes": ["libcrypto.so", "libssl.so"]
}
}
if platform.system() == 'Linux':
Expand Down

0 comments on commit 431cc77

Please sign in to comment.