Use native ARM runners #82
Workflow file for this run
This file contains hidden or 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
name: CI | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
appimage: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- ARCH: x86_64 | |
RUNS_ON: ubuntu | |
- ARCH: i686 | |
RUNS_ON: ubuntu | |
- ARCH: aarch64 | |
RUNS_ON: ubuntu-arm | |
- ARCH: armhf | |
RUNS_ON: ubuntu-arm | |
name: AppImage ${{ matrix.ARCH }} | |
runs-on: ${{ matrix.RUNS_ON }} | |
env: | |
ARCH: ${{ matrix.ARCH }} | |
DIST: bionic | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Build AppImage in Docker | |
run: bash -ex ci/build-in-docker.sh | |
- name: Archive artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: AppImage ${{ matrix.ARCH }} | |
path: zsync*.AppImage* | |
upload: | |
name: Create release and upload artifacts | |
needs: | |
- appimage | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download artifacts | |
uses: actions/download-artifact@v4 | |
- name: Inspect directory after downloading artifacts | |
run: ls -alFR | |
- name: Create release and upload artifacts | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
wget -q https://github.com/TheAssassin/pyuploadtool/releases/download/continuous/pyuploadtool-x86_64.AppImage | |
chmod +x pyuploadtool-x86_64.AppImage | |
./pyuploadtool-x86_64.AppImage **/zsync*.AppImage* |