1
0
Fork 1
mirror of https://github.com/zen-browser/desktop.git synced 2025-07-08 00:10:00 +02:00

.github/workflows: Migrate workflows to Blacksmith runners (#9104)

Co-authored-by: blacksmith-sh[bot] <157653362+blacksmith-sh[bot]@users.noreply.github.com>
Co-authored-by: mr. m <91018726+mr-cheffy@users.noreply.github.com>
This commit is contained in:
blacksmith-sh[bot] 2025-06-20 14:02:23 +02:00 committed by GitHub
parent a435d4ec18
commit 8bc4c97215
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 21 additions and 21 deletions

View file

@ -52,7 +52,7 @@ on:
jobs: jobs:
debug-inputs: debug-inputs:
name: Debug inputs name: Debug inputs
runs-on: ubuntu-latest runs-on: blacksmith-2vcpu-ubuntu-2404
steps: steps:
- name: Debug - name: Debug
run: | run: |
@ -66,7 +66,7 @@ jobs:
buildid: buildid:
name: Generate build ID name: Generate build ID
runs-on: ubuntu-latest runs-on: blacksmith-2vcpu-ubuntu-2404
outputs: outputs:
buildids: ${{ steps.get.outputs.bid }} buildids: ${{ steps.get.outputs.bid }}
steps: steps:
@ -77,7 +77,7 @@ jobs:
echo "bid=${bdat}" >> $GITHUB_OUTPUT echo "bid=${bdat}" >> $GITHUB_OUTPUT
start-self-host: start-self-host:
runs-on: ubuntu-latest runs-on: blacksmith-2vcpu-ubuntu-2404
needs: debug-inputs needs: debug-inputs
steps: steps:
- name: Download aws-cli - name: Download aws-cli
@ -102,7 +102,7 @@ jobs:
rm start.sh || true rm start.sh || true
check-build-is-correct: check-build-is-correct:
runs-on: ubuntu-latest runs-on: blacksmith-2vcpu-ubuntu-2404
needs: [debug-inputs] needs: [debug-inputs]
steps: steps:
- name: Checkout repository - name: Checkout repository
@ -135,7 +135,7 @@ jobs:
permissions: permissions:
contents: write contents: write
name: Generate build data name: Generate build data
runs-on: ubuntu-latest runs-on: blacksmith-2vcpu-ubuntu-2404
needs: check-build-is-correct needs: check-build-is-correct
outputs: outputs:
build_date: ${{ steps.data.outputs.builddate }} build_date: ${{ steps.data.outputs.builddate }}
@ -149,7 +149,7 @@ jobs:
token: ${{ secrets.DEPLOY_KEY }} token: ${{ secrets.DEPLOY_KEY }}
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: useblacksmith/setup-node@v5
with: with:
node-version-file: '.nvmrc' node-version-file: '.nvmrc'
@ -199,7 +199,7 @@ jobs:
name: Lint name: Lint
check-release: check-release:
runs-on: ubuntu-latest runs-on: blacksmith-2vcpu-ubuntu-2404
needs: [build-data, lint] needs: [build-data, lint]
steps: steps:
- name: Checkout repository - name: Checkout repository
@ -209,7 +209,7 @@ jobs:
token: ${{ secrets.DEPLOY_KEY }} token: ${{ secrets.DEPLOY_KEY }}
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: useblacksmith/setup-node@v5
with: with:
node-version-file: '.nvmrc' node-version-file: '.nvmrc'
@ -240,7 +240,7 @@ jobs:
source: source:
permissions: permissions:
contents: write contents: write
runs-on: ubuntu-latest runs-on: blacksmith-2vcpu-ubuntu-2404
needs: [build-data, check-release] needs: [build-data, check-release]
steps: steps:
@ -251,7 +251,7 @@ jobs:
token: ${{ secrets.DEPLOY_KEY }} token: ${{ secrets.DEPLOY_KEY }}
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: useblacksmith/setup-node@v5
with: with:
node-version-file: '.nvmrc' node-version-file: '.nvmrc'
@ -368,7 +368,7 @@ jobs:
name: AppImage build - Linux ${{ matrix.arch }} name: AppImage build - Linux ${{ matrix.arch }}
permissions: permissions:
contents: write contents: write
runs-on: ubuntu-latest runs-on: blacksmith-2vcpu-ubuntu-2404
strategy: strategy:
matrix: matrix:
arch: [x86_64, aarch64] arch: [x86_64, aarch64]
@ -381,7 +381,7 @@ jobs:
token: ${{ secrets.DEPLOY_KEY }} token: ${{ secrets.DEPLOY_KEY }}
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: useblacksmith/setup-node@v5
with: with:
node-version-file: '.nvmrc' node-version-file: '.nvmrc'
@ -446,7 +446,7 @@ jobs:
path: ./dist/zen-${{ matrix.arch }}.AppImage.zsync path: ./dist/zen-${{ matrix.arch }}.AppImage.zsync
stop-self-hosted: stop-self-hosted:
runs-on: ubuntu-latest runs-on: blacksmith-2vcpu-ubuntu-2404
needs: [windows-step-3, linux] needs: [windows-step-3, linux]
if: always() if: always()
steps: steps:
@ -487,7 +487,7 @@ jobs:
lint, lint,
stop-self-hosted, stop-self-hosted,
] ]
runs-on: ubuntu-latest runs-on: blacksmith-2vcpu-ubuntu-2404
environment: environment:
name: ${{ inputs.update_branch == 'release' && 'Deploy-Release' || 'Deploy-Twilight' }} name: ${{ inputs.update_branch == 'release' && 'Deploy-Release' || 'Deploy-Twilight' }}
@ -614,7 +614,7 @@ jobs:
permissions: write-all permissions: write-all
name: Prepare Flatpak name: Prepare Flatpak
needs: [release, linux, build-data] needs: [release, linux, build-data]
runs-on: ubuntu-latest runs-on: blacksmith-2vcpu-ubuntu-2404
steps: steps:
- name: Checkout Flatpak repository - name: Checkout Flatpak repository
@ -673,7 +673,7 @@ jobs:
permissions: write-all permissions: write-all
name: Release Flatpak name: Release Flatpak
needs: [prepare-flatpak, build-data] needs: [prepare-flatpak, build-data]
runs-on: ubuntu-latest runs-on: blacksmith-2vcpu-ubuntu-2404
steps: steps:
- name: Checkout Flatpak repository - name: Checkout Flatpak repository

View file

@ -26,7 +26,7 @@ jobs:
permissions: permissions:
contents: write contents: write
# aarch64 does not need full 16x # aarch64 does not need full 16x
runs-on: ${{ (inputs.release-branch == 'release' && matrix.arch == 'x86_64') && 'self-hosted' || 'ubuntu-latest' }} runs-on: ${{ (inputs.release-branch == 'release' && matrix.arch == 'x86_64') && 'self-hosted' || 'blacksmith-8vcpu-ubuntu-2404' }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -55,7 +55,7 @@ jobs:
token: ${{ secrets.DEPLOY_KEY }} token: ${{ secrets.DEPLOY_KEY }}
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: useblacksmith/setup-node@v5
with: with:
node-version-file: '.nvmrc' node-version-file: '.nvmrc'

View file

@ -35,7 +35,7 @@ jobs:
windows-build: windows-build:
name: Build Windows - ${{ matrix.arch }} name: Build Windows - ${{ matrix.arch }}
# aarch64 does not need full 16x, and we also dont use full LTO when generating GPO # aarch64 does not need full 16x, and we also dont use full LTO when generating GPO
runs-on: ${{ (inputs.release-branch == 'release' && !inputs.generate-gpo && matrix.arch == 'x86_64') && 'self-hosted' || 'ubuntu-latest' }} runs-on: ${{ (inputs.release-branch == 'release' && !inputs.generate-gpo && matrix.arch == 'x86_64') && 'self-hosted' || 'blacksmith-8vcpu-ubuntu-2404' }}
env: env:
SCCACHE_GHA_ENABLED: ${{ inputs.use-sccache && 'true' || 'false' }} SCCACHE_GHA_ENABLED: ${{ inputs.use-sccache && 'true' || 'false' }}
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
@ -64,7 +64,7 @@ jobs:
token: ${{ secrets.DEPLOY_KEY }} token: ${{ secrets.DEPLOY_KEY }}
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: useblacksmith/setup-node@v5
with: with:
node-version-file: '.nvmrc' node-version-file: '.nvmrc'
@ -103,7 +103,7 @@ jobs:
env: env:
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 5 SEGMENT_DOWNLOAD_TIMEOUT_MINS: 5
id: cache-win-cross id: cache-win-cross
uses: actions/cache@v4 uses: useblacksmith/cache@v5
with: with:
path: ${HOME}/win-cross path: ${HOME}/win-cross
key: win-cross key: win-cross