Skip to content

Commit fb4f095

Browse files
committed
Avoid templating GitHub Actions workflow
GitHub Actions workflow have sufficient power to express what we need. We don't need to maintain and additional templating solution on top.
1 parent 9694036 commit fb4f095

13 files changed

+171
-1256
lines changed

.github/workflows/bootstrap.yml

+12-31
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
# This file is auto-generated
2-
#
3-
# To regenerate it run
4-
#
5-
# make github-actions
6-
#
71
name: Bootstrap
2+
83
on:
94
push:
105
branches:
@@ -15,37 +10,22 @@ on:
1510
- created
1611

1712
jobs:
18-
boostrap-linux:
19-
name: Bootstrap on Linux
20-
runs-on: ubuntu-18.04
21-
steps:
22-
- uses: actions/checkout@v2
23-
- name: bootstrap.py
24-
run: |
25-
ghcup config set cache true
26-
ghcup install ghc 8.10.7
27-
python3 bootstrap/bootstrap.py -w $(ghcup whereis ghc 8.10.7) -d bootstrap/linux-8.10.7.json
28-
29-
- name: Smoke test
30-
run: |
31-
_build/bin/cabal --version
13+
boostrap:
14+
strategy:
15+
matrix:
16+
os:
17+
- ubuntu-18.04
18+
- macos-latest
3219

33-
- uses: actions/upload-artifact@v2
34-
with:
35-
name: cabal-linux-bootstrapped
36-
path: _build/artifacts/*
37-
38-
boostrap-macos:
39-
name: Bootstrap on macOS
40-
runs-on: macos-latest
20+
name: Bootstrap ${{ matrix.os }}
21+
runs-on: ${{ matrix.ps }}
4122
steps:
4223
- uses: actions/checkout@v2
43-
44-
# We use linux dependencies
4524
- name: bootstrap.py
4625
run: |
4726
ghcup config set cache true
4827
ghcup install ghc 8.10.7
28+
# We use linux dependencies
4929
python3 bootstrap/bootstrap.py -w $(ghcup whereis ghc 8.10.7) -d bootstrap/linux-8.10.7.json
5030
5131
- name: Smoke test
@@ -54,5 +34,6 @@ jobs:
5434
5535
- uses: actions/upload-artifact@v2
5636
with:
57-
name: cabal-macos-bootstrapped
37+
name: cabal-${{ matrix.os }}-bootstrapped
5838
path: _build/artifacts/*
39+

0 commit comments

Comments
 (0)