Skip to content

Commit

Permalink
Avoid templating GitHub Actions workflow
Browse files Browse the repository at this point in the history
GitHub Actions workflow have sufficient power to express what we need.
We don't need to maintain and additional templating solution on top.
  • Loading branch information
andreabedini committed Feb 4, 2022
1 parent 9694036 commit acaf3c8
Show file tree
Hide file tree
Showing 13 changed files with 171 additions and 1,256 deletions.
43 changes: 12 additions & 31 deletions .github/workflows/bootstrap.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# This file is auto-generated
#
# To regenerate it run
#
# make github-actions
#
name: Bootstrap

on:
push:
branches:
Expand All @@ -15,37 +10,22 @@ on:
- created

jobs:
boostrap-linux:
name: Bootstrap on Linux
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: bootstrap.py
run: |
ghcup config set cache true
ghcup install ghc 8.10.7
python3 bootstrap/bootstrap.py -w $(ghcup whereis ghc 8.10.7) -d bootstrap/linux-8.10.7.json
- name: Smoke test
run: |
_build/bin/cabal --version
boostrap:
strategy:
matrix:
os:
- ubuntu-18.04
- macos-latest

- uses: actions/upload-artifact@v2
with:
name: cabal-linux-bootstrapped
path: _build/artifacts/*

boostrap-macos:
name: Bootstrap on macOS
runs-on: macos-latest
name: Bootstrap ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2

# We use linux dependencies
- name: bootstrap.py
run: |
ghcup config set cache true
ghcup install ghc 8.10.7
# We use linux dependencies
python3 bootstrap/bootstrap.py -w $(ghcup whereis ghc 8.10.7) -d bootstrap/linux-8.10.7.json
- name: Smoke test
Expand All @@ -54,5 +34,6 @@ jobs:
- uses: actions/upload-artifact@v2
with:
name: cabal-macos-bootstrapped
name: cabal-${{ matrix.os }}-bootstrapped
path: _build/artifacts/*

Loading

0 comments on commit acaf3c8

Please sign in to comment.