Skip to content

Use alpine in all sensible workflows #2640

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
if: needs.pre_job.outputs.should_skip != 'true'
needs: pre_job
runs-on: ${{ matrix.os }}
container: ${{ (startsWith(matrix.os,'ubuntu') && 'alpine:3.12') || '' }}
defaults:
run:
shell: ${{ (startsWith(matrix.os,'windows') && 'bash') || 'sh' }}

strategy:
fail-fast: false
Expand All @@ -52,6 +56,12 @@ jobs:
# change of the strategy may require changing the bootstrapping/run code

steps:
- name: Install system dependencies for alpine linux
if: runner.os == 'Linux'
run: |
apk add --no-cache curl gcc g++ gmp-dev ncurses-dev libffi-dev make xz gzip tar perl git bash sudo binutils-gold
apk add --no-cache zlib zlib-dev zlib-static gmp gmp-dev ncurses-static

- uses: actions/checkout@v2

- run: git fetch origin master # check the master branch for benchmarking
Expand Down Expand Up @@ -98,6 +108,10 @@ jobs:
bench_example:
needs: [bench_init, pre_job]
runs-on: ${{ matrix.os }}
container: ${{ (startsWith(matrix.os,'ubuntu') && 'alpine:3.12') || '' }}
defaults:
run:
shell: ${{ (startsWith(matrix.os,'windows') && 'bash') || 'sh' }}

strategy:
fail-fast: false
Expand All @@ -108,6 +122,12 @@ jobs:
example: ['cabal', 'lsp-types']

steps:
- name: Install system dependencies for alpine linux
if: runner.os == 'Linux'
run: |
apk add --no-cache curl gcc g++ gmp-dev ncurses-dev libffi-dev make xz gzip tar perl git bash sudo binutils-gold
apk add --no-cache zlib zlib-dev zlib-static gmp gmp-dev ncurses-static

- uses: haskell/actions/setup@v1
with:
ghc-version : ${{ matrix.ghc }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
alpine:
description: 'Use alpine to build a fully static executable for linux'
required: false
default: 'false'
default: 'true'
release:
types: [created]
push:
Expand All @@ -20,6 +20,7 @@ jobs:
defaults:
run:
shell: ${{ (startsWith(matrix.os,'windows') && 'bash') || 'sh' }}

strategy:
fail-fast: false
matrix:
Expand All @@ -44,6 +45,7 @@ jobs:
run: |
apk add --no-cache curl gcc g++ gmp-dev ncurses-dev libffi-dev make xz gzip tar perl git bash sudo binutils-gold
apk add --no-cache zlib zlib-dev zlib-static gmp gmp-dev ncurses-static

- uses: actions/checkout@v2

- name: Disable tests and bechmarks
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/caching.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ jobs:
if: needs.pre_job.outputs.should_skip != 'true'
needs: pre_job
runs-on: ${{ matrix.os }}
container: ${{ (startsWith(matrix.os,'ubuntu') && 'alpine:3.12') || '' }}
defaults:
run:
shell: ${{ (startsWith(matrix.os,'windows') && 'bash') || 'sh' }}

strategy:
fail-fast: false
matrix:
Expand All @@ -92,6 +97,12 @@ jobs:
]

steps:
- name: Install system dependencies for alpine linux
if: runner.os == 'Linux'
run: |
apk add --no-cache curl gcc g++ gmp-dev ncurses-dev libffi-dev make xz gzip tar perl git bash sudo binutils-gold
apk add --no-cache zlib zlib-dev zlib-static gmp gmp-dev ncurses-static

- uses: actions/checkout@v2

- uses: ./.github/actions/setup-build
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/flags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}

steps:
- id: skip_check
uses: fkirc/[email protected]
Expand All @@ -40,6 +41,11 @@ jobs:
if: needs.pre_job.outputs.should_skip != 'true'
needs: pre_job
runs-on: ${{ matrix.os }}
container: ${{ (startsWith(matrix.os,'ubuntu') && 'alpine:3.12') || '' }}
defaults:
run:
shell: ${{ (startsWith(matrix.os,'windows') && 'bash') || 'sh' }}

strategy:
fail-fast: true
matrix:
Expand All @@ -53,6 +59,11 @@ jobs:
]

steps:
- name: Install system dependencies for alpine linux
run: |
apk add --no-cache curl gcc g++ gmp-dev ncurses-dev libffi-dev make xz gzip tar perl git bash sudo binutils-gold
apk add --no-cache zlib zlib-dev zlib-static gmp gmp-dev ncurses-static

- uses: actions/checkout@v2

- uses: ./.github/actions/setup-build
Expand Down
14 changes: 0 additions & 14 deletions .github/workflows/rerun.yml

This file was deleted.

11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ jobs:
if: needs.pre_job.outputs.should_skip != 'true'
needs: pre_job
runs-on: ${{ matrix.os }}
container: ${{ (startsWith(matrix.os,'ubuntu') && 'alpine:3.12') || '' }}
defaults:
run:
shell: ${{ (startsWith(matrix.os,'windows') && 'bash') || 'sh' }}

strategy:
fail-fast: true
matrix:
Expand Down Expand Up @@ -105,6 +110,12 @@ jobs:
ghc: '8.8.4'

steps:
- name: Install system dependencies for alpine linux
if: runner.os == 'Linux'
run: |
apk add --no-cache curl gcc g++ gmp-dev ncurses-dev libffi-dev make xz gzip tar perl git bash sudo binutils-gold
apk add --no-cache zlib zlib-dev zlib-static gmp gmp-dev ncurses-static

- uses: actions/checkout@v2

- uses: ./.github/actions/setup-build
Expand Down