Skip to content

Commit

Permalink
Test it with more runners
Browse files Browse the repository at this point in the history
  • Loading branch information
sestrella committed Jun 28, 2024
1 parent 4972fe1 commit f473545
Showing 1 changed file with 8 additions and 41 deletions.
49 changes: 8 additions & 41 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,61 +14,28 @@ concurrency:

jobs:
haskell:
# strategy:
# fail-fast: true
# matrix:
# os:
# - macos-13 # x64
# - ubuntu-latest
strategy:
fail-fast: true
matrix:
os:
- macos-13 # x86_64-darwin
- macos-latest # aarch64-darwin
- ubuntu-latest # x86_64-linux
# devShell:
# - ghc810
# - ghc90
# runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v12
with:
extra-conf:
accept-flake-config = true
- uses: DeterminateSystems/magic-nix-cache-action@v7
# https://input-output-hk.github.io/haskell.nix/tutorials/getting-started.html
# with:
# extra_nix_config: |
# substituters = https://cache.iog.io https://cache.nixos.org
# trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
# https://github.com/actions/cache/blob/main/examples.md#haskell---cabal
# - uses: actions/cache@v3
# with:
# path: |
# ~/.cabal/packages
# ~/.cabal/store
# dist-newstyle
# key: ${{ runner.os }}-${{ matrix.devShell }}-${{ hashFiles('*.cabal') }}
# restore-keys: ${{ runner.os }}-${{ matrix.devShell }}-
# - name: Install packages / Print versions
# run: |
# ./bin/${{ matrix.devShell }} -c ghc --version
# ./bin/${{ matrix.devShell }} -c cabal --version
# - run: nix flake show
- name: Compile code
run: nix build .#test
timeout-minutes: 10
- name: Run tests
run: nix run .#test
# timeout-minutes: 5
# - name: Update package index
# run: ./bin/${{ matrix.devShell }} -c cabal update
# - name: Enable tests
# run: ./bin/${{ matrix.devShell }} -c cabal configure --enable-tests
# - name: Install project dependencies
# run: ./bin/${{ matrix.devShell }} -c cabal build --only-dependencies
# - name: Compile project
# run: ./bin/${{ matrix.devShell }} -c cabal build
# - name: Run tests
# run: ./bin/${{ matrix.devShell }} -c cabal test
# - name: Check documentation
# run: ./bin/${{ matrix.devShell }} -c ./script/haddock

docker:
if: false
Expand Down

0 comments on commit f473545

Please sign in to comment.