Skip to content

Commit ec014c1

Browse files
Merge pull request casper-network#13 from casper-network/add-gh-actions
Add gh actions
2 parents 07f61b5 + 06ed0a6 commit ec014c1

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

.github/workflows/check.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: check
2+
on:
3+
pull_request:
4+
branches: [main]
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
check:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest, macos-latest, macos-14]
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: DeterminateSystems/nix-installer-action@main
17+
- uses: cachix/cachix-action@v12
18+
with:
19+
name: cspr
20+
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
21+
22+
- name: System Info
23+
run: |
24+
uname -a
25+
nix --version
26+
27+
- name: format
28+
if: matrix.os == 'ubuntu-latest'
29+
run: nix build -L --no-link --show-trace .#checks.x86_64-linux.format
30+
31+
- name: cctl (x86_64-linux)
32+
if: matrix.os == 'ubuntu-latest'
33+
run: nix build -L --no-link --show-trace .#packages.x86_64-linux.cctl
34+
35+
- name: cctl (x86_64-darwin)
36+
if: matrix.os == 'macos-latest'
37+
run: nix build -L --no-link --show-trace .#packages.x86_64-darwin.cctl
38+
39+
- name: cctl aarch64-darwin
40+
if: matrix.os == 'macos-14'
41+
run: nix build -L --no-link --show-trace .#packages.aarch64-darwin.cctl

.github/workflows/pre-check.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: pre-check
2+
on:
3+
pull_request:
4+
branches: [main]
5+
6+
jobs:
7+
check-signed-commits:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: check signed commits
11+
uses: 1Password/check-signed-commits-action@v1

0 commit comments

Comments
 (0)