forked from kcl-lang/kcl
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: peefy <[email protected]>
- Loading branch information
Showing
2 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: build-and-test-windows-mingw | ||
on: ["push", "pull_request"] | ||
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 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: kcl-windows-mingw | ||
if-no-files-found: error | ||
path: kclvm/target/x86_64-pc-windows-gnu/libkclvm_cli_cdylib.a |
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