From aa5dcbd7316ba9f948f038c78409cc61da7b597e Mon Sep 17 00:00:00 2001 From: KtorZ Date: Wed, 3 Jan 2024 11:07:01 +0100 Subject: [PATCH] Bump Ubuntu runner's version & enable aarch64 builds :finger_crossed: --- .github/workflows/continuous-integration.yaml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml index 114e10f7a..3391c68eb 100644 --- a/.github/workflows/continuous-integration.yaml +++ b/.github/workflows/continuous-integration.yaml @@ -23,10 +23,10 @@ jobs: strategy: matrix: os: [ linux ] - arch: [ x86_64 ] + arch: [ x86_64, aarch64 ] compiler: [ ghc96 ] - runs-on: ${{ matrix.os == 'linux' && matrix.arch == 'aarch64' && 'buildjet-4vcpu-ubuntu-2204-arm' || 'ubuntu-latest' }} + runs-on: ${{ matrix.os == 'linux' && matrix.arch == 'aarch64' && 'buildjet-4vcpu-ubuntu-2204-arm' || 'ubuntu-22.04' }} steps: - name: 📥 Checkout repository @@ -108,6 +108,7 @@ jobs: chmod -w share - name: 🔬 Version Sanity Check + id: version-check shell: bash run: | OUTPUT=$(./bin/ogmios --version) @@ -132,6 +133,7 @@ jobs: echo "" if [[ $OUTPUT == $TAG* ]] && [[ $OUTPUT == $VERSION* ]]; then + echo "tag=$TAG" >> $GITHUB_OUTPUT echo "Ok." exit 0 else @@ -144,7 +146,7 @@ jobs: - name: 📎 Upload Artifact uses: actions/upload-artifact@v3 with: - name: ogmios-${{ matrix.arch }}-${{ matrix.os }} + name: ogmios-${{ steps.version-check.outputs.tag }}-${{ matrix.arch }}-${{ matrix.os }} path: | bin share @@ -161,7 +163,7 @@ jobs: server_lint: strategy: matrix: - os: [ ubuntu-20.04 ] + os: [ ubuntu-22.04 ] runs-on: ${{ matrix.os }} steps: - name: 📥 Checkout repository @@ -222,7 +224,7 @@ jobs: network: [ preview ] cardano-node: [ 8.1.2 ] - runs-on: ${{ matrix.os == 'linux' && 'ubuntu-latest' }} + runs-on: ${{ matrix.os == 'linux' && 'ubuntu-22.04' }} steps: - name: 📥 Checkout repository uses: actions/checkout@v3 @@ -305,7 +307,7 @@ jobs: needs: [clients_TypeScript] strategy: matrix: - os: [ ubuntu-20.04 ] + os: [ ubuntu-22.04 ] target: [linux,macos,win.exe] steps: - name: 📥 Checkout repository @@ -346,7 +348,7 @@ jobs: needs: [clients_TypeScript] strategy: matrix: - os: [ ubuntu-20.04 ] + os: [ ubuntu-22.04 ] package: [ schema, client, repl ] steps: - name: 📥 Checkout repository @@ -401,7 +403,7 @@ jobs: cardano-node-latest: [ 8.6.0-pre ] arch: [ x86_64 ] - runs-on: ${{ matrix.os == 'linux' && 'ubuntu-latest' }} + runs-on: ${{ matrix.os == 'linux' && 'ubuntu-22.04' }} steps: - name: 📥 Checkout repository