mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-07-03 11:53:41 +02:00
.github/workflows/package.yml: build windows installer instead of zip file.
This commit is contained in:
parent
522c9ccfd5
commit
dd1fe841ad
1 changed files with 6 additions and 6 deletions
12
.github/workflows/package.yml
vendored
12
.github/workflows/package.yml
vendored
|
|
@ -33,7 +33,7 @@ jobs:
|
||||||
asset_path: ${{ steps.package.outputs.filename }}
|
asset_path: ${{ steps.package.outputs.filename }}
|
||||||
asset_content_type: application/x-deb
|
asset_content_type: application/x-deb
|
||||||
|
|
||||||
# Windows zip file
|
# Windows installer
|
||||||
windows:
|
windows:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
|
@ -50,7 +50,7 @@ jobs:
|
||||||
} else {
|
} else {
|
||||||
$PLATFORM="${{matrix.arch}}"
|
$PLATFORM="${{matrix.arch}}"
|
||||||
}
|
}
|
||||||
cmake -A $PLATFORM -D OPENSSL_ROOT_DIR="$pwd/build/openssl-1.1/${{matrix.arch}}" -S . -B build
|
cmake -A $PLATFORM -D CPACK_GENERATOR=NSIS -S . -B build
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build build --config Release
|
run: cmake --build build --config Release
|
||||||
|
|
@ -58,10 +58,10 @@ jobs:
|
||||||
- name: Package
|
- name: Package
|
||||||
id: package
|
id: package
|
||||||
run: |
|
run: |
|
||||||
cmake --build build --config Release --target package
|
cmake --build build --target package
|
||||||
$FILE=(ls build/eosio-keygen*.zip)
|
$FILE=(ls build/*.exe)
|
||||||
echo "::set-output name=filename::$FILE"
|
echo "::set-output name=filename::$FILE"
|
||||||
echo "::set-output name=name::$(([io.fileinfo]"$FILE").basename).zip"
|
echo "::set-output name=name::$(([io.fileinfo]"$FILE").basename).exe"
|
||||||
|
|
||||||
- name: Upload
|
- name: Upload
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
|
|
@ -71,4 +71,4 @@ jobs:
|
||||||
upload_url: ${{ github.event.release.upload_url }}
|
upload_url: ${{ github.event.release.upload_url }}
|
||||||
asset_name: ${{ steps.package.outputs.name }}
|
asset_name: ${{ steps.package.outputs.name }}
|
||||||
asset_path: ${{ steps.package.outputs.filename }}
|
asset_path: ${{ steps.package.outputs.filename }}
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/vnd.microsoft.portable-executable
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue