Skip to content

Commit

Permalink
feat(ci): support windows builds (attempt building on the windows run…
Browse files Browse the repository at this point in the history
…ner)
  • Loading branch information
usagi-flow committed Aug 29, 2024
1 parent ca0bc67 commit 6dca9e5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/evil-build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,21 +60,21 @@ jobs:
- name: Build
run: |
rustup target add ${{ matrix.target.id }}
cargo build --target ${{ matrix.target.id }} --profile $BUILD_PROFILE
cargo build --target ${{ matrix.target.id }} --profile $RUST_BUILD_PROFILE
if: ${{ matrix.target.native }}

- name: Build (cross)
run: cross build --target ${{ matrix.target.id }} --profile $BUILD_PROFILE
run: cross build --target ${{ matrix.target.id }} --profile $RUST_BUILD_PROFILE
if: ${{ !matrix.target.native }}

- name: "Prepare dist"
shell: bash
run: |
mkdir -pv dist/helix
if [ -f target/${{ matrix.target.id }}/$BUILD_PROFILE/hx ]; then
mv -v target/${{ matrix.target.id }}/$BUILD_PROFILE/hx dist/helix/
if [ -f target/${{ matrix.target.id }}/$RUST_BUILD_PROFILE/hx ]; then
mv -v target/${{ matrix.target.id }}/$RUST_BUILD_PROFILE/hx dist/helix/
else
mv -v target/${{ matrix.target.id }}/$BUILD_PROFILE/hx.exe dist/helix/
mv -v target/${{ matrix.target.id }}/$RUST_BUILD_PROFILE/hx.exe dist/helix/
fi
rm -rf runtime/grammars/sources
mv -v runtime dist/helix/
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/evil-build-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,21 +81,21 @@ jobs:
- name: Build
run: |
rustup target add ${{ matrix.target.id }}
cargo build --target ${{ matrix.target.id }} --profile $BUILD_PROFILE
cargo build --target ${{ matrix.target.id }} --profile $RUST_BUILD_PROFILE
if: ${{ matrix.target.native }}

- name: Build (cross)
run: cross build --target ${{ matrix.target.id }} --profile $BUILD_PROFILE
run: cross build --target ${{ matrix.target.id }} --profile $RUST_BUILD_PROFILE
if: ${{ !matrix.target.native }}

- name: "Prepare dist"
shell: bash
run: |
mkdir -pv dist/helix
if [ -f target/${{ matrix.target.id }}/$BUILD_PROFILE/hx ]; then
mv -v target/${{ matrix.target.id }}/$BUILD_PROFILE/hx dist/helix/
if [ -f target/${{ matrix.target.id }}/$RUST_BUILD_PROFILE/hx ]; then
mv -v target/${{ matrix.target.id }}/$RUST_BUILD_PROFILE/hx dist/helix/
else
mv -v target/${{ matrix.target.id }}/$BUILD_PROFILE/hx.exe dist/helix/
mv -v target/${{ matrix.target.id }}/$RUST_BUILD_PROFILE/hx.exe dist/helix/
fi
rm -rf runtime/grammars/sources
mv -v runtime dist/helix/
Expand Down

0 comments on commit 6dca9e5

Please sign in to comment.