@@ -16,7 +16,8 @@ concurrency:
1616
1717jobs :
1818 build-binary :
19- runs-on : [self-hosted, Linux, X64, prod]
19+ runs-on : depot-ubuntu-24.04-16
20+ container : registry.depot.dev/${{ vars.DEPOT_PROJECT_ID }}:arch-latest
2021 permissions :
2122 contents : write
2223 outputs :
7071 -DVICINAE_PROVENANCE=binary_release \
7172 -DLTO=ON \
7273 -DUSE_SYSTEM_CMARK_GFM=OFF \
73- -DCMAKE_PREFIX_PATH="$Qt6_DIR" \
7474 -DCMAKE_INSTALL_PREFIX="${INSTALL_DIR}"
7575
7676 - name : Build
9090 cd "${INSTALL_DIR}"
9191 tar -czvf "${{ github.workspace }}/${{ steps.meta.outputs.artifact }}" .
9292
93- - name : Fetch sponsors
94- id : sponsors
95- env :
96- GH_TOKEN : ${{ secrets.SPONSORS_TOKEN || github.token }}
97- run : |
98- set -euo pipefail
99- logins=$(gh api graphql -f query='
100- query {
101- organization(login: "vicinaehq") {
102- sponsors(first: 100) {
103- nodes {
104- ... on User { login }
105- ... on Organization { login }
106- }
107- }
108- }
109- }
110- ' --jq '.data.organization.sponsors.nodes[].login' 2>/dev/null || true)
111-
112- if [[ -z "$logins" ]]; then
113- echo "body=" >> "$GITHUB_OUTPUT"
114- else
115- {
116- echo 'body<<SPONSORS_EOF'
117- echo ""
118- echo "## Sponsors"
119- echo ""
120- echo "Thanks to our sponsors for supporting vicinae!"
121- echo ""
122- while IFS= read -r login; do
123- echo "- [@${login}](https://github.com/${login})"
124- done <<< "$logins"
125- echo 'SPONSORS_EOF'
126- } >> "$GITHUB_OUTPUT"
127- fi
128-
12993 - name : Create GitHub Release and upload asset
13094 uses : softprops/action-gh-release@v2
13195 with :
@@ -135,24 +99,29 @@ jobs:
13599 files : |
136100 ${{ steps.meta.outputs.artifact }}
137101
138- - name : Append sponsors to release notes
139- if : steps.sponsors.outputs.body != ''
140- uses : softprops/action-gh-release@v2
141- with :
142- tag_name : ${{ steps.meta.outputs.tag }}
143- append_body : true
144- body : ${{ steps.sponsors.outputs.body }}
145-
146102
147103 build-appimage :
148104 needs : build-binary
149- runs-on : [self-hosted, Linux, X64, appimage]
105+ runs-on : ${{ matrix.target.runner }}
106+ container : registry.depot.dev/${{ vars.DEPOT_PROJECT_ID }}:${{ matrix.target.tag }}
150107 permissions :
151108 contents : write
109+ strategy :
110+ fail-fast : false
111+ matrix :
112+ target :
113+ - arch : amd64
114+ runner : depot-ubuntu-24.04-16
115+ tag : appimage-amd64-latest
116+ - arch : arm64
117+ runner : depot-ubuntu-24.04-arm-16
118+ tag : appimage-arm64-latest
119+ name : build-appimage (${{ matrix.target.arch }})
152120 env :
153121 BUILD_TYPE : Release
154122 INSTALL_DIR : ${{ github.workspace }}/install
155123 APP_DIR : ${{ github.workspace }}/appdir
124+ APPIMAGE_EXTRACT_AND_RUN : " 1"
156125
157126 steps :
158127 - name : Checkout
0 commit comments