Skip to content

Commit 320ebf5

Browse files
committed
Release MSVC version
1 parent d947f04 commit 320ebf5

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

.github/workflows/release.yaml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ env:
2222
jobs:
2323
release:
2424
name: release
25-
runs-on: ubuntu-latest
25+
runs-on: windows-latest
2626
steps:
2727
- name: Get release information
2828
id: info
29+
shell: bash
2930
run: |
3031
ref_name='${{ github.ref_name }}'
3132
echo "ref_name: $ref_name"
@@ -56,11 +57,6 @@ jobs:
5657
echo "target_commitish=$target_commitish" >> $GITHUB_OUTPUT
5758
echo "date=$date" >> $GITHUB_OUTPUT
5859
echo "prerelease=$prerelease" >> $GITHUB_OUTPUT
59-
shell: bash
60-
61-
- name: Install Mingw-w64
62-
shell: bash
63-
run: sudo apt install -y --no-install-recommends gcc-mingw-w64-i686
6460
6561
- name: Checkout repository
6662
uses: actions/checkout@v4
@@ -70,8 +66,12 @@ jobs:
7066
run: rustup show
7167

7268
- name: Build release binary
73-
run: cargo build --verbose --release --package 'zipfixup' --package 'zippatch'
7469
shell: bash
70+
run: cargo build --verbose --release --package 'zipfixup' --package 'zippatch' --target 'i686-pc-windows-msvc'
71+
72+
- name: Run export checker
73+
shell: bash
74+
run: cargo run --package 'export-check' --target 'x86_64-pc-windows-msvc' -- 'target/i686-pc-windows-msvc/release/zipfixup.dll'
7575

7676
- name: Build archive
7777
id: build
@@ -80,14 +80,16 @@ jobs:
8080
archive="ZipperFixup-${{ steps.info.outputs.version }}.zip"
8181
mkdir 'staging'
8282
cp 'misc/Readme.txt' 'staging/'
83-
cp 'target/i686-pc-windows-gnu/release/zipfixup.dll' 'staging/'
84-
cp 'target/i686-pc-windows-gnu/release/zippatch.exe' 'staging/'
83+
cp 'LICENSE' 'staging/'
84+
cp 'target/i686-pc-windows-msvc/release/zipfixup.dll' 'staging/'
85+
cp 'target/i686-pc-windows-msvc/release/zippatch.exe' 'staging/'
8586
# junk paths so staging/ doesn't appear in the zip
8687
zip -j "$archive" staging/*
8788
echo "asset=$archive" >> $GITHUB_OUTPUT
8889
8990
- name: Create GitHub release
9091
id: release
92+
shell: bash
9193
run: |
9294
curl \
9395
--fail \
@@ -110,10 +112,10 @@ jobs:
110112
upload_url="${upload_url%%'{?name,label}'}"
111113
echo "upload_url: $upload_url"
112114
echo "upload_url=$upload_url" >> $GITHUB_OUTPUT
113-
shell: bash
114115
115116
- name: Upload release archive
116117
id: upload
118+
shell: bash
117119
# use `--http1.1` to work around Windows-only issue
118120
# https://github.com/actions/runner-images/issues/7329
119121
run: |
@@ -126,4 +128,3 @@ jobs:
126128
--header 'Authorization: Bearer ${{ github.token }}' \
127129
--header 'Content-type: application/octet-stream' \
128130
--data-binary '@${{ steps.build.outputs.asset }}'
129-
shell: bash

0 commit comments

Comments
 (0)