-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (34 loc) · 1.17 KB
/
rust.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Run tests
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
gen-bindings:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Setup env
run: ./scripts/setup-env -MICROSOFT_CLIENT_ID=${{ secrets.MICROSOFT_CLIENT_ID }} -MICROSOFT_TENANT_ID=${{ secrets.MICROSOFT_TENANT_ID }} -AZURE_SECRET=${{ secrets.AZURE_SECRET }}
- name: Generate bindings
run: ./scripts/gen-bindings
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update bindings
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup env
run: ./scripts/setup-env -MICROSOFT_CLIENT_ID=${{ secrets.MICROSOFT_CLIENT_ID }} -MICROSOFT_TENANT_ID=${{ secrets.MICROSOFT_TENANT_ID }} -AZURE_SECRET=${{ secrets.AZURE_SECRET }}
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y python3 pip bubblewrap
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose --workspace