diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 74ad4a93bc..0af37a228e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -208,3 +208,34 @@ jobs: run: cabal build --only-dependencies --enable-tests --enable-benchmarks - name: Build run: cabal build --enable-tests --enable-benchmarks all + + + arm: + name: Cabal - Linux aarch64 + runs-on: + - self-hosted + - Linux + - ARM64 + steps: + - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + - name: Cache .cabal + uses: ./.github/actions/cache-on-main + with: + path: | + ~/.cabal/packages + ~/.cabal/store + prefix: cabal-arm- + suffix: ${{ hashFiles('postgrest.cabal', 'cabal.project', 'cabal.project.freeze') }} + - name: Cache dist-newstyle + uses: ./.github/actions/cache-on-main + with: + path: dist-newstyle + save-prs: true + prefix: cabal-arm--dist-newstyle-${{ hashFiles('postgrest.cabal', 'cabal.project', 'cabal.project.freeze') }} + suffix: ${{ hashFiles('**/*.hs') }} + - name: Install dependencies + run: | + cabal update + cabal build --only-dependencies --enable-tests --enable-benchmarks + - name: Build + run: cabal build --enable-tests --enable-benchmarks all