Skip to content

Commit

Permalink
Revert 3cd28ca and pin devx revision instead
Browse files Browse the repository at this point in the history
  In hope that this doesn't automatically pick up ghc-9.6.4
  • Loading branch information
KtorZ committed Apr 16, 2024
1 parent 3cd28ca commit dc6391a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ jobs:
matrix:
os: [ linux ]
arch: [ x86_64, aarch64 ]
compiler: [ ghc963 ]
compiler: [ ghc96 ]
devx-version: [ 82eb2a0633de606ac9347898967deeb305b477d0 ]

runs-on: ${{ matrix.os == 'linux' && matrix.arch == 'aarch64' && 'buildjet-16vcpu-ubuntu-2204-arm' || 'ubuntu-22.04' }}

Expand Down Expand Up @@ -59,13 +60,13 @@ jobs:
if: ${{ matrix.arch == 'x86_64' }}
working-directory: server
run: |
nix develop github:input-output-hk/devx#${{ matrix.compiler }}-static-minimal-iog --no-write-lock-file --refresh --command bash -c "cat /nix/store/vd865r55pdbndjwh994h90m35qq77x44-cabal.project.local >> cabal.project.local && cabal update && cabal freeze"
nix develop github:input-output-hk/devx/${{ matrix.devx-version}}#${{ matrix.compiler }}-static-minimal-iog --no-write-lock-file --refresh --command bash -c "cat /nix/store/vd865r55pdbndjwh994h90m35qq77x44-cabal.project.local >> cabal.project.local && cabal update && cabal freeze"
- name: ❄️ Prepare cache (aarch64)
if: ${{ matrix.arch == 'aarch64' }}
working-directory: server
run: |
nix develop github:input-output-hk/devx#${{ matrix.compiler }}-static-minimal-iog --no-write-lock-file --refresh --command bash -c "cat /nix/store/hviyb5sciblcyr5fc3vsqcwmfh1nz69w-cabal.project.local >> cabal.project.local && cabal update && cabal freeze"
nix develop github:input-output-hk/devx/${{ matrix.devx-version}}#${{ matrix.compiler }}-static-minimal-iog --no-write-lock-file --refresh --command bash -c "cat /nix/store/hviyb5sciblcyr5fc3vsqcwmfh1nz69w-cabal.project.local >> cabal.project.local && cabal update && cabal freeze"
- name: 💾 Download Cache
uses: actions/cache/restore@v3
Expand All @@ -81,7 +82,7 @@ jobs:
- name: 🔨 Dependencies
working-directory: server
run: |
nix develop github:input-output-hk/devx#${{ matrix.compiler }}-static-minimal-iog --no-write-lock-file --refresh --command bash -c "cabal build --enable-executable-static --only-dependencies ogmios:lib:ogmios"
nix develop github:input-output-hk/devx/${{ matrix.devx-version }}#${{ matrix.compiler }}-static-minimal-iog --no-write-lock-file --refresh --command bash -c "cabal build --enable-executable-static --only-dependencies ogmios:lib:ogmios"
env:
GIT_SHA: ${{ github.sha }}

Expand All @@ -97,14 +98,14 @@ jobs:
- name: 🔨 Build
working-directory: server
run: |
nix develop github:input-output-hk/devx#${{ matrix.compiler }}-static-minimal-iog --no-write-lock-file --refresh --command bash -c "cabal build --enable-executable-static ogmios:exe:ogmios"
nix develop github:input-output-hk/devx/${{ matrix.devx-version }}#${{ matrix.compiler }}-static-minimal-iog --no-write-lock-file --refresh --command bash -c "cabal build --enable-executable-static ogmios:exe:ogmios"
env:
GIT_SHA: ${{ github.sha }}

- name: 📦 Package
run: |
mkdir -p bin
cp ./server/dist-newstyle/build/${{ matrix.arch }}-${{ matrix.os }}/ghc-${{ matrix.compiler == 'ghc963' && '9.6.3' }}/ogmios-${{ steps.version.outputs.version }}/x/ogmios/build/ogmios/ogmios ./bin/ogmios
cp ./server/dist-newstyle/build/${{ matrix.arch }}-${{ matrix.os }}/ghc-${{ matrix.compiler == 'ghc96' && '9.6.3' }}/ogmios-${{ steps.version.outputs.version }}/x/ogmios/build/ogmios/ogmios ./bin/ogmios
mkdir -p share && chmod +w share
mkdir -p share/zsh/site-functions
./bin/ogmios --zsh-completion-script ogmios > ./share/zsh/site-functions/_ogmios
Expand Down

0 comments on commit dc6391a

Please sign in to comment.