Skip to content

Commit

Permalink
CI: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Léana 江 committed Jan 7, 2024
1 parent 4d65784 commit 232918c
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@ on:
jobs:

stack:
name: "stack + ghc-${{ matrix.ghc }} on ${{ matrix.os }}"
runs-on: ubuntu-latest
name: "${{ matrix.os }} / stack + ghc-${{ matrix.ghc }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
cabal: ["3.6.2.0"]
os:
- ubuntu-latest
- macOS-latest
- windows-latest

cabal:
- "3.6.2.0"
ghc:
- "9.4.7"

Expand All @@ -29,17 +34,26 @@ jobs:
name: Cache ~/.stack
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.ghc }}-stack
key: ${{ matrix.os }}-${{ matrix.ghc }}-stack

- name: Install dependencies
run: |
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks --only-dependencies
- name: Test
run: |
stack test --system-ghc
- name: Build
run: |
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks
- name: Test
- name: Upload
run: |
stack test --system-ghc
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks
- name: Upload executable
uses: actions/upload-artifact@v3
with:
name: prop-solveur-${{ matrix.os }}-${{ github.sha }}
if: matrix.os == "ubuntu-latest"
path: ~/.stack-work/dist/x86_64-linux/ghc-9.4.7/build/prop-solveur/prop-solveur

0 comments on commit 232918c

Please sign in to comment.