forked from wasmCloud/wasmCloud
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unfortunately, `wash` cannot be built for mingw due to rust-lang/rust#92212 Signed-off-by: Roman Volosatovs <[email protected]>
- Loading branch information
1 parent
0f967b0
commit abc0750
Showing
4 changed files
with
26 additions
and
12 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
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 |
---|---|---|
|
@@ -52,13 +52,14 @@ jobs: | |
file ./result/bin/wasmcloud | ||
test-oci: docker load < ./result | ||
|
||
- target: x86_64-pc-windows-gnu | ||
test-bin: | | ||
nix profile install --inputs-from . 'nixpkgs#wine64' | ||
wine64 ./result/bin/wash.exe --version | ||
wine64 ./result/bin/wasmcloud.exe --version | ||
test-oci: docker load < ./result | ||
# TODO: Run win64 binary within OCI | ||
# TODO: Build for GNU once https://github.com/rust-lang/rust/issues/92212 is resolved | ||
#- target: x86_64-pc-windows-gnu | ||
# test-bin: | | ||
# nix profile install --inputs-from . 'nixpkgs#wine64' | ||
# wine64 ./result/bin/wash.exe --version | ||
# wine64 ./result/bin/wasmcloud.exe --version | ||
# test-oci: docker load < ./result | ||
# # TODO: Run win64 binary within OCI | ||
|
||
- target: x86_64-unknown-linux-musl | ||
test-bin: | | ||
|
@@ -84,6 +85,20 @@ jobs: | |
package: wasmcloud-${{ matrix.config.target }}-oci | ||
- run: ${{ matrix.config.test-oci }} | ||
|
||
build-windows: | ||
name: wasmcloud-x86_64-pc-windows-msvc | ||
runs-on: windows-latest-8-cores | ||
steps: | ||
- uses: actions/[email protected] | ||
- run: cargo build --release --workspace | ||
- run: mkdir -p ./bin | ||
- run: mv ./target/release/wasmcloud.exe ./bin/wasmcloud.exe | ||
- run: mv ./target/release/wash.exe ./bin/wash.exe | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: wasmcloud-x86_64-pc-windows-msvc | ||
path: bin | ||
|
||
build-lipo: | ||
name: wasmcloud-universal-darwin | ||
needs: build-bin | ||
|
@@ -127,11 +142,12 @@ jobs: | |
|
||
test-windows: | ||
runs-on: windows-2022 | ||
needs: build-bin | ||
needs: build-windows | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: wasmcloud-x86_64-pc-windows-gnu | ||
name: wasmcloud-x86_64-pc-windows-msvc | ||
- run: .\bin\wash.exe --version | ||
- run: .\bin\wasmcloud.exe --version | ||
|
||
cargo: | ||
|
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
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