Created
March 29, 2023 10:06
-
-
Save alberic89/884340132aee9f91a813edc43b2fed57 to your computer and use it in GitHub Desktop.
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
name: Build | |
on: [ push, pull_request, workflow_dispatch ] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ARCH: ['x86_64', 'i386', 'armhf', 'aarch64'] | |
env: | |
ARCH: ${{ matrix.ARCH }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
- name: Set up QEMU integration for Docker | |
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes | |
- name: Build | |
run: | | |
bash -ex ci/build.sh | |
- name: List files | |
run: | | |
ls -lh out/ | |
- name: Upload artifact | |
uses: actions/upload-artifact@v1.0.0 | |
with: | |
# Artifact name | |
name: appimagetool-${{ matrix.ARCH }}.build | |
path: out/ | |
upload: | |
name: Create release and upload artifacts | |
needs: | |
- build | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Download artifacts | |
uses: actions/download-artifact@v2 | |
- 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 **/appimagetool*.AppImage* **/AppRun* **/runtime-* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment