Skip to content

Commit 5a91647

Browse files
authored
Add CI workflow configuration for Rust project
1 parent fe82e94 commit 5a91647

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
---
3+
4+
### `.github/workflows/ci.yml`
5+
```yaml
6+
name: CI
7+
8+
on:
9+
push:
10+
pull_request:
11+
12+
jobs:
13+
heresy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Install Rust
18+
uses: dtolnay/rust-toolchain@stable
19+
- name: Verify gcc
20+
run: gcc --version
21+
- name: Build & Run
22+
run: cargo run -q
23+
- name: Check artifacts
24+
run: |
25+
test -x target/heresy_c/heretic_build
26+
test -x target/heresy_c/heresy_exe
27+
./target/heresy_c/heresy_exe

0 commit comments

Comments
 (0)