-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): support windows builds (attempt building on the windows run…
…ner)
- Loading branch information
1 parent
aae4346
commit ca0bc67
Showing
2 changed files
with
12 additions
and
8 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 |
---|---|---|
|
@@ -47,11 +47,11 @@ jobs: | |
|
||
- name: Install binstall | ||
uses: "cargo-bins/[email protected]" | ||
if: ${{ !matrix.target.native}} | ||
if: ${{ !matrix.target.native }} | ||
|
||
- name: "Install cross" | ||
run: "cargo binstall -y cross" | ||
if: ${{ !matrix.target.native}} | ||
if: ${{ !matrix.target.native }} | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
|
@@ -61,11 +61,11 @@ jobs: | |
run: | | ||
rustup target add ${{ matrix.target.id }} | ||
cargo build --target ${{ matrix.target.id }} --profile $BUILD_PROFILE | ||
if: ${{ matrix.target.native}} | ||
if: ${{ matrix.target.native }} | ||
|
||
- name: Build (cross) | ||
run: cross build --target ${{ matrix.target.id }} --profile $BUILD_PROFILE | ||
if: ${{ !matrix.target.native}} | ||
if: ${{ !matrix.target.native }} | ||
|
||
- name: "Prepare dist" | ||
shell: bash | ||
|
@@ -89,9 +89,11 @@ jobs: | |
with: | ||
name: "evil-helix-${{ matrix.target.name }}" | ||
path: "dist/evil-helix-${{ matrix.target.name }}.tar.gz" | ||
if: ${{ matrix.target.id != 'x86_64-pc-windows-gnu' }} | ||
|
||
- name: "Upload artifacts (zip)" | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: "evil-helix-${{ matrix.target.name }}" | ||
path: "dist/helix" | ||
if: ${{ matrix.target.id == 'x86_64-pc-windows-gnu' }} |
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 |
---|---|---|
|
@@ -68,11 +68,11 @@ jobs: | |
|
||
- name: Install binstall | ||
uses: "cargo-bins/[email protected]" | ||
if: ${{ !matrix.target.native}} | ||
if: ${{ !matrix.target.native }} | ||
|
||
- name: "Install cross" | ||
run: "cargo binstall -y cross" | ||
if: ${{ !matrix.target.native}} | ||
if: ${{ !matrix.target.native }} | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
|
@@ -82,11 +82,11 @@ jobs: | |
run: | | ||
rustup target add ${{ matrix.target.id }} | ||
cargo build --target ${{ matrix.target.id }} --profile $BUILD_PROFILE | ||
if: ${{ matrix.target.native}} | ||
if: ${{ matrix.target.native }} | ||
|
||
- name: Build (cross) | ||
run: cross build --target ${{ matrix.target.id }} --profile $BUILD_PROFILE | ||
if: ${{ !matrix.target.native}} | ||
if: ${{ !matrix.target.native }} | ||
|
||
- name: "Prepare dist" | ||
shell: bash | ||
|
@@ -110,12 +110,14 @@ jobs: | |
with: | ||
name: "evil-helix-${{ matrix.target.name }}" | ||
path: "dist/evil-helix-${{ matrix.target.name }}.tar.gz" | ||
if: ${{ matrix.target.id != 'x86_64-pc-windows-gnu' }} | ||
|
||
- name: "Upload artifacts (zip)" | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: "evil-helix-${{ matrix.target.name }}" | ||
path: "dist/helix" | ||
if: ${{ matrix.target.id == 'x86_64-pc-windows-gnu' }} | ||
|
||
- name: Release suffix | ||
id: release-suffix | ||
|