-
Notifications
You must be signed in to change notification settings - Fork 13
46 lines (43 loc) · 1.47 KB
/
ci.yml
File metadata and controls
46 lines (43 loc) · 1.47 KB
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
39
40
41
42
43
44
45
46
on:
push:
branches: [master]
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, ubuntu-24.04-arm, macos-14, macos-15, macos-15-intel]
fail-fast: false
runs-on: ${{ matrix.os }}
permissions:
contents: "read"
steps:
- uses: "actions/checkout@v4"
- uses: "DeterminateSystems/nix-installer-action@main"
- name: Context
run: |
nix --version
- name: Lint
run: make lint
- name: Flake Check
run: make flake-check
- name: Test Default Shell
run: |
set -x
# test `nix develop`
nix develop .# --command -- bash -c "solc-0.8.35 --version"
# test `nix shell`
nix shell .#solc_0_8_35
# test solc.nix as input to other flakes
# Note: overriding flake input is needed as a workaround to local sub flake with overlapping paths.
nix develop ./test/.# --override-input solc $PWD --command -- bash -c "solc --version"
nix develop ./test/.# --override-input solc $PWD --command -- bash -c "solc-0.8.35 --version"
ci-check-success:
needs: [ci]
runs-on: ubuntu-latest
steps:
- name: Check if all workflows succeeded
run: |
echo "All reusable workflows succeeded."