Skip to content

Commit

Permalink
refactor(pre-release): wrong path :c
Browse files Browse the repository at this point in the history
  • Loading branch information
Thumuss committed Jun 5, 2024
1 parent 2423721 commit 07257f1
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,23 @@ jobs:
cargo install cross --git https://github.com/cross-rs/cross.git --locked --rev 085092ca
cross build --bin utpm -p utpm --release --target ${{ matrix.target }}
- name: Install zig
if: ${{ matrix.os == 'macos-latest' || matrix.os == 'windows-latest' }}
uses: korandoru/setup-zig@v1
- name: Set up MinGW on Windows
uses: egor-tensin/setup-mingw@v2
if: ${{ matrix.os == "windows-latest"}}
with:
zig-version: master
platform: x64

- name: Set up GCC
if: ${{ !matrix.cross }}
uses: egor-tensin/setup-gcc@v1
with:
version: latest
platform: x64

- name: Run Cargo
if: ${{ !matrix.cross }}
run: |
cargo install cargo-zigbuild
cargo zigbuild --bin utpm -p utpm --release --target ${{ matrix.target }}
cargo build --bin utpm -p utpm --release --target ${{ matrix.target }}
- name: Create artifact directory
shell: bash
Expand All @@ -82,7 +88,7 @@ jobs:
with:
token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
tag_name: $SHA
tag_name: ${{ steps.short-sha.outputs.sha }}
generate_release_notes: true
files: |
utpm-${{ matrix.target }}.*

0 comments on commit 07257f1

Please sign in to comment.