1.4.4: Add reverse encoders for packed repeated fields. #121
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
nix-build: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
ghc: | |
- 8107 | |
- 902 | |
- 928 | |
- 948 | |
- 962 | |
- 981 | |
exclude: | |
- os: macos-latest | |
ghc: 902 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3.5.3 | |
name: Checkout | |
- uses: cachix/install-nix-action@v22 | |
name: Install Nix | |
- uses: cachix/cachix-action@v12 | |
name: Set up Cachix | |
with: | |
name: awakesecurity | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- run: nix-build --argstr compiler ghc${{ matrix.ghc }} | |
name: Build Package | |
stack-build: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
ghc: | |
- 8.10.7 | |
- 9.0.2 | |
- 9.2.8 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3.5.3 | |
- name: Setup Haskell | |
uses: haskell/actions/setup@v2.4.3 | |
with: | |
ghc-version: ${{ matrix.ghc }} | |
enable-stack: true | |
stack-version: 2.11 | |
- name: Cache dependencies | |
uses: actions/cache@v3.3.1 | |
with: | |
path: ~/.stack | |
key: ${{ runner.os }}-${{ matrix.ghc }}-stack | |
restore-keys: | | |
${{ runner.os }}-${{ matrix.ghc }}-stack | |
- name: Build | |
run: stack build --system-ghc --stack-yaml stack-${{ matrix.ghc }}.yaml | |
- name: Test | |
run: stack test --system-ghc --stack-yaml stack-${{ matrix.ghc }}.yaml | |
# Test fails with ld warnings on macos-stack combo | |
# doctest fails with ghc-9.0.2 + stack: https://github.com/sol/doctest/issues/327 | |
continue-on-error: ${{ matrix.os == 'macos-latest' || matrix.ghc == '9.0.2' }} |