-
Notifications
You must be signed in to change notification settings - Fork 119
48 lines (43 loc) · 1.37 KB
/
mingw_test.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
46
47
48
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