Skip to content

Commit e5c5300

Browse files
committed
feat(ci): initial workflow
1 parent 6a356d7 commit e5c5300

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
test:
12+
name: Test Solana & Anchor CLI
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
# https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
18+
os: [ubuntu-24.04, ubuntu-24.04-arm, windows-latest, windows-11-arm, macos-13, macos-latest]
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Install Nix
23+
uses: DeterminateSystems/nix-installer-action@main
24+
25+
- name: Enable Nix Flakes
26+
run: |
27+
echo "experimental-features = nix-command flakes" | sudo tee -a /etc/nix/nix.conf
28+
sudo systemctl restart nix-daemon || true
29+
30+
- name: Test Solana CLI
31+
run: |
32+
nix run .#solana-cli -- --version
33+
34+
- name: Test Anchor CLI
35+
run: |
36+
nix run .#anchor-cli -- --version

0 commit comments

Comments
 (0)