-
Notifications
You must be signed in to change notification settings - Fork 10
39 lines (38 loc) · 1.18 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
on:
push:
branches: [main]
pull_request:
types: [synchronize, opened, reopened, ready_for_review]
jobs:
ci:
strategy:
matrix:
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners
os: [ubuntu-latest, macos-12, macos-13, macos-14]
fail-fast: false
runs-on: ${{ matrix.os }}
permissions:
contents: "read"
steps:
- uses: "actions/checkout@v4"
- uses: "DeterminateSystems/nix-installer-action@main"
- uses: "DeterminateSystems/magic-nix-cache-action@v6"
- name: Context
run: |
nix --version
- name: Lint
run: make lint
- name: Flake Check
run: make flake-check
- name: Test Default Shell
run: |
nix develop .# --command -- bash -c "solc-0.8.23 --version"
nix develop ./test# --command -- bash -c "solc --version"
nix develop ./test# --command -- bash -c "solc-0.8.23 --version"
ci-check-success:
needs: [ci]
runs-on: ubuntu-latest
steps:
- name: Check if all workflows succeeded
run: |
echo "All reusable workflows succeeded."