Skip to content

Commit 52b2b63

Browse files
authored
add aarch64 and nightly builds (#1)
1 parent 18d1cef commit 52b2b63

File tree

3 files changed

+133
-5
lines changed

3 files changed

+133
-5
lines changed

.github/workflows/nightly.yml

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
name: Appimage (Nightly)
2+
concurrency:
3+
group: build-${{ github.ref }}
4+
cancel-in-progress: true
5+
6+
on:
7+
schedule:
8+
- cron: "0 7 1/3 * *"
9+
workflow_dispatch: {}
10+
11+
jobs:
12+
build:
13+
name: "${{ matrix.name }} (${{ matrix.arch }})"
14+
runs-on: ${{ matrix.runs-on }}
15+
strategy:
16+
matrix:
17+
include:
18+
- runs-on: ubuntu-latest
19+
optimized: false
20+
name: "Azahar build (Normal)"
21+
arch: x86_64
22+
- runs-on: ubuntu-latest
23+
optimized: true
24+
name: "Azahar Build (Optimized)"
25+
arch: x86_64
26+
- runs-on: ubuntu-24.04-arm
27+
name: "Azahar build"
28+
optimized: false
29+
arch: aarch64
30+
container: ghcr.io/pkgforge-dev/archlinux:latest
31+
steps:
32+
- uses: actions/checkout@v4
33+
with:
34+
persist-credentials: false
35+
36+
- name: Install dependencies
37+
if: always()
38+
run: chmod +x ./get-dependencies.sh && ./get-dependencies.sh
39+
40+
- name: Compile Azahar (Normal)
41+
if: ${{ matrix.optimized == false }}
42+
run: |
43+
export DEVEL=true
44+
chmod +x ./azahar-appimage.sh && ./azahar-appimage.sh
45+
mkdir -p dist
46+
mv *.AppImage* dist/
47+
48+
- name: Compile Azahar (Optimized)
49+
if: ${{ matrix.optimized == true }}
50+
run: |
51+
export DEVEL=true
52+
chmod +x ./azahar-appimage.sh && ./azahar-appimage.sh v3
53+
mkdir -p dist
54+
mv *.AppImage* dist/
55+
56+
- name: Upload artifact
57+
uses: actions/[email protected]
58+
with:
59+
name: azahar-${{ matrix.optimized && 'optimized' || 'normal' }}-appimage-${{ matrix.arch }}
60+
path: "dist"
61+
62+
- name: Check version file
63+
if: ${{ matrix.optimized == false }}
64+
run: |
65+
cat ~/version
66+
echo "APP_VERSION=$(cat ~/version)" >> "${GITHUB_ENV}"
67+
68+
- name: Upload version file
69+
uses: actions/[email protected]
70+
with:
71+
name: version
72+
path: ~/version
73+
overwrite: true
74+
75+
release:
76+
name: "release"
77+
needs: [build]
78+
permissions:
79+
actions: read
80+
security-events: write
81+
contents: write
82+
runs-on: ubuntu-latest
83+
steps:
84+
- uses: actions/[email protected]
85+
with:
86+
name: azahar-optimized-appimage-x86_64
87+
88+
- uses: actions/[email protected]
89+
with:
90+
name: azahar-normal-appimage-x86_64
91+
92+
- uses: actions/[email protected]
93+
with:
94+
name: azahar-normal-appimage-aarch64
95+
96+
- uses: actions/[email protected]
97+
with:
98+
name: version
99+
100+
- name: Read version
101+
run: |
102+
export VERSION="$(cat version)"
103+
export SNAPSHOT_TAG="$(date --utc +'%Y%m%d-%H%M%S')"
104+
echo "APP_VERSION=${VERSION}" >> "${GITHUB_ENV}"
105+
echo SNAPSHOT_TAG="${SNAPSHOT_TAG}" >> "${GITHUB_ENV}"
106+
107+
- name: Del Previous Release
108+
run: |
109+
gh release delete "nightly" --repo "${GITHUB_REPOSITORY}" --cleanup-tag -y
110+
sleep 5
111+
env:
112+
GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
113+
continue-on-error: true
114+
115+
- name: Continuous Releaser
116+
uses: softprops/action-gh-release@v2
117+
with:
118+
name: "Azahar AppImage Nightly ${{ env.APP_VERSION }}"
119+
tag_name: "${{ env.APP_VERSION }}"
120+
prerelease: true
121+
draft: false
122+
generate_release_notes: false
123+
make_latest: true
124+
files: |
125+
*.AppImage*

.github/workflows/stable.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: Build Azahar (Stable)
1+
name: Appimage
22
concurrency:
3-
group: build-stable-${{ github.ref }}
3+
group: build-${{ github.ref }}
44
cancel-in-progress: true
55

66
on:
77
schedule:
8-
- cron: "0 14 * * 0"
8+
- cron: "0 7 1/14 * *"
99
workflow_dispatch: {}
1010

1111
jobs:

azahar-appimage.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,13 @@ echo "$VERSION" > ~/version
4646
cd ./azahar
4747
git submodule update --init --recursive -j$(nproc)
4848

49+
# HACK
50+
sed -i '10a #include <memory>' ./src/video_core/shader/shader_jit_a64_compiler.*
51+
4952
mkdir ./build
5053
cd ./build
51-
cmake .. -DCMAKE_CXX_COMPILER=g++ \
52-
-DCMAKE_C_COMPILER=gcc \
54+
cmake .. -DCMAKE_CXX_COMPILER=clang++ \
55+
-DCMAKE_C_COMPILER=clang \
5356
-DCMAKE_INSTALL_PREFIX=/usr \
5457
-DENABLE_QT_TRANSLATION=ON \
5558
-DUSE_SYSTEM_BOOST=OFF \

0 commit comments

Comments
 (0)