Skip to content

Commit 0403601

Browse files
committed
split ci from release flow
1 parent fa5cd06 commit 0403601

2 files changed

Lines changed: 27 additions & 22 deletions

File tree

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
runs-on: "ubuntu-latest"
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
submodules: recursive
15+
- name: "Install build dependencies (Linux)"
16+
run: |
17+
sudo apt-get update
18+
sudo apt-get install -y cmake gcc g++
19+
- name: "Rust Cache"
20+
uses: "Swatinem/rust-cache@v2"
21+
with:
22+
"prefix-key": "v1-rust"
23+
"shared-key": "test"
24+
"cache-on-failure": "true"
25+
"save-if": "${{ github.ref == 'refs/heads/master' }}"
26+
- name: "Run tests"
27+
run: cargo test

.github/workflows/release.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -86,34 +86,12 @@ jobs:
8686
name: artifacts-plan-dist-manifest
8787
path: plan-dist-manifest.json
8888

89-
# Run tests before building release artifacts
90-
test:
91-
runs-on: "ubuntu-latest"
92-
steps:
93-
- uses: actions/checkout@v4
94-
with:
95-
submodules: recursive
96-
- name: "Install build dependencies (Linux)"
97-
run: |
98-
sudo apt-get update
99-
sudo apt-get install -y cmake gcc g++
100-
- name: "Rust Cache"
101-
uses: "Swatinem/rust-cache@v2"
102-
with:
103-
"prefix-key": "v1-rust"
104-
"shared-key": "test"
105-
"cache-on-failure": "true"
106-
"save-if": "${{ github.ref == 'refs/heads/master' }}"
107-
- name: "Run tests"
108-
run: cargo test
109-
11089
# Build and packages all the platform-specific things
11190
build-local-artifacts:
11291
name: build-local-artifacts (${{ join(matrix.targets, ', ') }})
11392
# Let the initial task tell us to not run (currently very blunt)
11493
needs:
11594
- plan
116-
- test
11795
if: ${{ fromJson(needs.plan.outputs.val).ci.github.artifacts_matrix.include != null && (needs.plan.outputs.publishing == 'true' || fromJson(needs.plan.outputs.val).ci.github.pr_run_mode == 'upload') }}
11896
strategy:
11997
fail-fast: false

0 commit comments

Comments
 (0)