-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (32 loc) · 870 Bytes
/
build.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
40
41
name: Build
on:
push:
pull_request:
release:
types: [created]
jobs:
build:
name: cgt-rs build
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install toolchain
uses: dtolnay/rust-toolchain@f361669954a8ecfc00a3443f35f9ac8e610ffc06
with:
toolchain: stable
components: rustfmt, clippy
targets: wasm32-unknown-unknown
- name: Add mingw64 to path for x86_64-gnu
if: matrix.os == 'windows-latest'
run: echo "C:\msys64\mingw64\bin" >> $GITHUB_PATH
shell: bash
- name: Build
run: cargo build --release --all
- name: Test
run: cargo test --all
# - name: Clippy
# run: cargo clippy -- -D warnings