-
Notifications
You must be signed in to change notification settings - Fork 8
45 lines (33 loc) · 1.24 KB
/
generate.yaml
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
42
43
44
45
name: generate
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
BUILD_TYPE: ["Debug"]
os: [ windows-latest ]
steps:
- uses: actions/checkout@v2
- name: Get MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Get specific version CMake, v3.21.2
uses: lukka/[email protected]
- name: Install rust stable
uses: dtolnay/rust-toolchain@stable
- name: cmake configure
run: >
cmake . -DCMAKE_BUILD_TYPE=${{ matrix.BUILD_TYPE }} -B build
- name: remove generated com code
run: cmake --build build --config ${{ matrix.BUILD_TYPE }} --target force_clean
- name: generate rust code
run: cmake --build build --config ${{ matrix.BUILD_TYPE }} --target generate_rust
- name: check all generated files are checked in git
run: git diff --exit-code
- name: build rust code
run: cmake --build build --config ${{ matrix.BUILD_TYPE }}
- name: Install rust nightly
uses: dtolnay/rust-toolchain@nightly
- name: check crate packaging
# TODO: move back to stable once package-workspace is stabilized
run: cargo +nightly -Z package-workspace package -p mssf-pal -p mssf-com -p mssf-core --allow-dirty