@@ -40,10 +40,10 @@ jobs:
4040 artifacts : " plc"
4141 arch : linux-amd64
4242 RUSTFLAGS : " "
43- # - os: "windows-latest"
44- # dir: win64
45- # artifacts: "plc.exe"
46- # RUSTFLAGS: "-Dwarnings -Ctarget-feature=+crt-static"
43+ - os : " windows-latest"
44+ dir : win64
45+ artifacts : " plc.exe"
46+ RUSTFLAGS : " -Dwarnings -Ctarget-feature=+crt-static"
4747 steps :
4848 - uses : actions/checkout@v3
4949 with :
@@ -70,43 +70,17 @@ jobs:
7070 - name : Install LLVM
7171 uses : Pivot-Studio/setup-llvm@main
7272
73- - name : set up win scoop
74- if : ${{ matrix.config.os == 'windows-latest' }}
75- uses : MinoruSekine/setup-scoop@main
76-
77- - name : Install LLVM and Clang win
78- if : ${{ matrix.config.os == 'windows-latest' }}
79- run : |
80- scoop install 7zip
81- scoop install wget
82- wget https://github.com/Pivot-Studio/pivot-lang/releases/download/llvm-windows-latest/llvm-14.0.6-windows-x64-msvc17.7z
83- 7z x .\llvm-14.0.6-windows-x64-msvc17.7z -y -o${{ runner.temp }}\llvm
84- [Environment]::SetEnvironmentVariable(
85- "Path",
86- [Environment]::GetEnvironmentVariable("Path", "User") + ";${{ runner.temp }}\llvm\bin",
87- "User"
88- )
89- [Environment]::SetEnvironmentVariable('LLVM_SYS_140_PREFIX', '${{ runner.temp }}\llvm', 'User')
73+ # - name: set up win scoop
74+ # if: ${{ matrix.config.os == 'windows-latest' }}
75+ # uses: MinoruSekine/setup-scoop@main
9076
91- - uses : ilammy/msvc-dev-cmd@v1
92- if : ${{ matrix.config.os == 'windows-latest' }}
93- with :
94- arch : x64
95- vs_version : 2022
96- - name : Cargo build win
97- if : ${{ matrix.config.os == 'windows-latest' }}
98- env :
99- RUSTFLAGS : ${{ matrix.config.RUSTFLAGS }}
100- run : cargo build --release --verbose
10177
10278 - name : Cargo build
103- if : ${{ matrix.config.os != 'windows-latest' }}
10479 env :
10580 RUSTFLAGS : ${{ matrix.config.RUSTFLAGS }}
10681 run : cargo build --release
10782
10883 - name : Cargo build vm
109- if : ${{ matrix.config.os != 'windows-latest' }}
11084 env :
11185 RUSTFLAGS : ${{ matrix.config.RUSTFLAGS }}
11286 run : cd vm && cargo build --release
@@ -225,7 +199,6 @@ jobs:
225199 github_repository : Pivot-Studio/apt-repo
226200
227201 - name : tar artifacts
228- if : ${{ matrix.config.os != 'windows-latest' }}
229202 env :
230203 OUT_DIR : ${{ matrix.config.dir }}
231204 OS : ${{ matrix.config.os }}
0 commit comments