Skip to content

Commit

Permalink
Merge pull request casper-network#13 from casper-network/add-gh-actions
Browse files Browse the repository at this point in the history
Add gh actions
  • Loading branch information
asladeofgreen authored May 1, 2024
2 parents 07f61b5 + 06ed0a6 commit ec014c1
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: check
on:
pull_request:
branches: [main]
push:
branches: [main]

jobs:
check:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-14]
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: cachix/cachix-action@v12
with:
name: cspr
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

- name: System Info
run: |
uname -a
nix --version
- name: format
if: matrix.os == 'ubuntu-latest'
run: nix build -L --no-link --show-trace .#checks.x86_64-linux.format

- name: cctl (x86_64-linux)
if: matrix.os == 'ubuntu-latest'
run: nix build -L --no-link --show-trace .#packages.x86_64-linux.cctl

- name: cctl (x86_64-darwin)
if: matrix.os == 'macos-latest'
run: nix build -L --no-link --show-trace .#packages.x86_64-darwin.cctl

- name: cctl aarch64-darwin
if: matrix.os == 'macos-14'
run: nix build -L --no-link --show-trace .#packages.aarch64-darwin.cctl
11 changes: 11 additions & 0 deletions .github/workflows/pre-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: pre-check
on:
pull_request:
branches: [main]

jobs:
check-signed-commits:
runs-on: ubuntu-latest
steps:
- name: check signed commits
uses: 1Password/check-signed-commits-action@v1

0 comments on commit ec014c1

Please sign in to comment.