feat: Add some restrictions in load_all_files_under_paths #307
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: build-and-test-windows-mingw | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-test: | |
name: build and test on windows mingw | |
runs-on: windows-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: "true" | |
- name: Install rust nightly toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: 1.79 | |
override: true | |
components: clippy, rustfmt | |
- run: C:\msys64\usr\bin\pacman.exe -S --needed mingw-w64-x86_64-gcc --noconfirm | |
- shell: pwsh | |
run: echo "C:\msys64\mingw64\bin" >> $Env:GITHUB_PATH | |
- working-directory: ./kclvm | |
run: | | |
rustup target add x86_64-pc-windows-gnu | |
cargo build -r --target x86_64-pc-windows-gnu | |
- name: Read VERSION file | |
id: read_version | |
run: | | |
$version = Get-Content VERSION | |
echo "VERSION=v$version" >> $env:GITHUB_ENV | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: kclvm-${{ env.VERSION }}-windows-mingw | |
if-no-files-found: error | |
path: | | |
kclvm/target/x86_64-pc-windows-gnu/release/libkclvm_cli_cdylib.a | |
kclvm/target/x86_64-pc-windows-gnu/release/libkclvm_cli_cdylib.dll.a | |
kclvm/target/x86_64-pc-windows-gnu/release/kclvm_cli_cdylib.dll |