diff --git a/.github/workflows/cabal.yml b/.github/workflows/cabal.yml deleted file mode 100644 index e4189b06..00000000 --- a/.github/workflows/cabal.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Cabal - -on: ['pull_request', 'push'] - -jobs: - build: - name: Build on ${{ matrix.os }} GHC ${{ matrix.ghc }} - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, macOS-latest] - ghc: ["9.4", "9.6", "9.8"] - fail-fast: false - - steps: - - uses: actions/checkout@v2 - - - uses: haskell/actions/setup@v2 - name: Setup Haskell Cabal - with: - ghc-version: ${{ matrix.ghc }} - - - uses: actions/cache@v2 - name: Cache ~/.cabal - with: - path: ~/.cabal - key: "${{ runner.os }}-${{ matrix.ghc }}-v9-${{ hashFiles('stylish-haskell.cabal') }}" - - - name: Build - run: cabal build - id: build - - - name: Test - run: cabal test - diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 73c9ddd2..11f1421b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macOS-latest] - ghc: ["9.6.2"] + ghc: ["9.4", "9.6", "9.8"] steps: - uses: actions/checkout@v4 @@ -29,11 +29,11 @@ jobs: - run: make build - run: make test - - if: startsWith(github.ref, 'refs/tags') + - if: startsWith(github.ref, 'refs/tags') && matrix.ghc == '9.6' run: make artifact - uses: actions/upload-artifact@v4 - if: startsWith(github.ref, 'refs/tags') + if: startsWith(github.ref, 'refs/tags') && matrix.ghc == '9.6' with: path: artifacts/* name: artifacts-${{ runner.os }}