fix echo #52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: cmake configure | |
run: > | |
cmake . -DCMAKE_BUILD_TYPE=${{ matrix.BUILD_TYPE }} -B build | |
- name: remove all generated 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 sample rust app | |
run: cmake --build build --config ${{ matrix.BUILD_TYPE }} --target build_rust_sample_echomain |