Skip to content

Commit 938b58f

Browse files
committed
fix workflow
1 parent ece2916 commit 938b58f

File tree

2 files changed

+56
-43
lines changed

2 files changed

+56
-43
lines changed

.github/workflows/solana-integration.yml

-43
This file was deleted.

.github/workflows/solana.yml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: solana
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request: null
7+
8+
env:
9+
RUSTC_VERSION: 1.75.0
10+
jobs:
11+
cancel-previous-runs:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Cancel Previous Runs
15+
uses: styfle/cancel-workflow-action@0.9.1
16+
with:
17+
access_token: ${{ github.token }}
18+
make-cargo-test-all:
19+
name: make cargo-test-all
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Install toolchain
24+
uses: dtolnay/rust-toolchain@master
25+
with:
26+
toolchain: ${{ env.RUSTC_VERSION }}
27+
components: clippy, rustfmt
28+
- name: make cargo-test-all
29+
run: make cargo-test-all
30+
working-directory: ./solana
31+
make-lint:
32+
name: make lint
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v4
36+
- name: Install toolchain
37+
uses: dtolnay/rust-toolchain@master
38+
with:
39+
toolchain: ${{ env.RUSTC_VERSION }}
40+
components: clippy, rustfmt
41+
- name: make lint
42+
run: make lint
43+
working-directory: ./solana
44+
make-anchor-test:
45+
name: make anchor-test
46+
runs-on: ubuntu-latest
47+
# Anchor Docker image: https://www.anchor-lang.com/docs/verifiable-builds#images
48+
container: backpackapp/build:v0.30.0
49+
steps:
50+
- uses: actions/checkout@v4
51+
# - name: Set default Rust toolchain
52+
# run: rustup default stable
53+
# working-directory: ./solana
54+
- name: make anchor-test
55+
run: make anchor-test
56+
working-directory: ./solana

0 commit comments

Comments
 (0)