Skip to content

Commit

Permalink
CI: Include a single Ubuntu 18.04 job
Browse files Browse the repository at this point in the history
This is done purely for the sake of increasing our coverage of Linux when
making releases. See #1140 for the motivation.

We won't run any of the tests et al. for this job.
  • Loading branch information
RyanGlScott committed May 12, 2022
1 parent 35df95e commit b9784d4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@ sign() {

zip_dist() {
: "${VERSION?VERSION is required as an environment variable}"
name="${name:-"cryptol-$VERSION-$RUNNER_OS-x86_64"}"
name="${name:-"cryptol-$VERSION-$OS_TAG-x86_64"}"
cp -r dist "$name"
tar -cvzf "$name".tar.gz "$name"
}

zip_dist_with_solvers() {
: "${VERSION?VERSION is required as an environment variable}"
name="${name:-"cryptol-$VERSION-$RUNNER_OS-x86_64"}"
name="${name:-"cryptol-$VERSION-$OS_TAG-x86_64"}"
sname="${name}-with-solvers"
cp "$(which abc)" dist/bin/
cp "$(which cvc4)" dist/bin/
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ jobs:
ghc-version: 9.0.2
- os: windows-2022
ghc-version: 9.2.2
include:
# We include one job from an older Ubuntu LTS release to increase our
# coverage of possible Linux configurations.
- os: ubuntu-18.04
ghc-version: 8.8.4
outputs:
test-lib-json: ${{ steps.test-lib.outputs.targets-json }}
env:
Expand Down Expand Up @@ -165,12 +170,16 @@ jobs:
NAME="${{ needs.config.outputs.name }}-${{ runner.os }}-x86_64"
echo "NAME=$NAME" >> $GITHUB_ENV
.github/ci.sh zip_dist $NAME
env:
OS_TAG: ${{ matrix.os }}

- shell: bash
run: |
NAME="${{ needs.config.outputs.name }}-${{ runner.os }}-x86_64"
echo "NAME=$NAME" >> $GITHUB_ENV
.github/ci.sh zip_dist_with_solvers $NAME
env:
OS_TAG: ${{ matrix.os }}

- if: needs.config.outputs.release == 'true'
shell: bash
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ Cryptol builds and runs on various flavors of Linux, Mac OS X, and
Windows. We regularly build and test it in the following environments:

- macOS 10.15, 64-bit
- Ubuntu 18.04, 64-bit
- Ubuntu 20.04, 64-bit
- Windows Server 2019, 64-bit

Expand Down

0 comments on commit b9784d4

Please sign in to comment.