1+ name : vortex-build-arm64
2+
3+ on :
4+ push :
5+ branches : [ "master" ]
6+ pull_request :
7+ branches : [ "master" ]
8+ workflow_call :
9+ outputs :
10+ artifact-url :
11+ description : " Artifact URL"
12+ value : ${{ jobs.build.outputs.output1 }}
13+ artifact-id :
14+ description : " Artifact ID"
15+ value : ${{ jobs.build.outputs.output2 }}
16+ artifact-digest :
17+ description : " Artifact Digest SHA"
18+ value : ${{ jobs.build.outputs.output3 }}
19+ vortex-version :
20+ description : " Version of the artifact"
21+ value : ${{ jobs.build.outputs.output4 }}
22+ build-arch :
23+ description : " Build architecture"
24+ value : ${{ jobs.build.outputs.output5 }}
25+
26+ permissions :
27+ contents : read
28+
29+ jobs :
30+ build :
31+ runs-on : ubuntu-24.04-arm
32+ outputs :
33+ output1 : ${{ steps.upload-artifact.outputs.artifact-url }}
34+ output2 : ${{ steps.upload-artifact.outputs.artifact-id }}
35+ output3 : ${{ steps.upload-artifact.outputs.artifact-digest }}
36+ output4 : ${{ steps.vortex-version.outputs.vortex-version }}
37+ output5 : ${{ steps.vortex-arch.outputs.vortex-arch }}
38+ steps :
39+ - uses : actions/checkout@v5
40+ with :
41+ fetch-depth : 0
42+ fetch-tags : true
43+ - name : Set up Python ${{ matrix.python-version }}
44+ uses : actions/setup-python@v5
45+ with :
46+ python-version : ' 3.13'
47+ - name : Get Version
48+ id : vortex-version
49+ run : echo "vortex-version=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
50+ - name : Get Arch
51+ id : vortex-arch
52+ run : echo "vortex-arch=$(uname -m)" >> $GITHUB_OUTPUT
53+ - name : Install dependencies
54+ run : |
55+ sudo apt update
56+ sudo apt install -y meson libgirepository-2.0-dev libcairo2-dev
57+ python -m pip install --upgrade pip setuptools wheel flake8 meson
58+ pip install -r virtualenv.txt
59+ # - name: Lint with flake8
60+ # run: |
61+ # # stop the build if there are Python syntax errors or undefined names
62+ # flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
63+ # # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
64+ # flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
65+ - name : Build emulator ${{ steps.vortex-version.outputs.vortex-version }}
66+ run : make package
67+ - name : Upload asset
68+ id : upload-artifact
69+ uses : actions/upload-artifact@v4
70+ with :
71+ name : vortex-${{ steps.vortex-version.outputs.vortex-version }}-${{ steps.vortex-arch.outputs.vortex-arch }}
72+ path : vortex-${{ steps.vortex-version.outputs.vortex-version }}-${{ steps.vortex-arch.outputs.vortex-arch }}.tar.bz2
0 commit comments