[CI] Run cargo build/test
Adds GitHub actions to build and test the Rust version of Forget on every commit to main. I didn't enable this on PRs for now just to avoid slowing down other folks, this seemed like a reasonable compromise while we're still in the experimentation phase. I test locally, and CI will catch if I or anyone else slips up.
Joseph Savona committed
Jul 26, 2023 at 14:01 UTC
6912c31056651e2144a9b69d09ed3797dba60079
1 file changed
+21
compiler/.github/workflows/rust.yml
new
+21
@@ -0,0 +1,21 @@
1
+name: Forget (Rust)
2
+
3
+on:
4
+ push:
5
+ branches: [ "main" ]
6
+ pull_request:
7
+
8
+env:
9
+ CARGO_TERM_COLOR: always
10
+
11
+jobs:
12
+ test:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v3
16
+ - name: Build
17
+ run: cargo build --verbose
18
+ working-directory: forget
19
+ - name: Run tests
20
+ run: cargo test --verbose
21
+ working-directory: forget