|
|
|
@ -44,13 +44,13 @@ jobs:
|
|
|
|
|
draft: true
|
|
|
|
|
prerelease: true
|
|
|
|
|
|
|
|
|
|
upload:
|
|
|
|
|
build-and-upload:
|
|
|
|
|
name: Create and upload builds
|
|
|
|
|
needs: [ make_release, get_version ]
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
strategy:
|
|
|
|
|
matrix:
|
|
|
|
|
os: [ windows-latest ]
|
|
|
|
|
os: [ windows-latest, ubuntu-latest, macOS-latest ]
|
|
|
|
|
|
|
|
|
|
defaults:
|
|
|
|
|
run:
|
|
|
|
@ -64,19 +64,28 @@ jobs:
|
|
|
|
|
- name: Build release binary
|
|
|
|
|
run: |
|
|
|
|
|
cargo build --release
|
|
|
|
|
- name: win_arch
|
|
|
|
|
run: echo "BIN_ARCH=windows-amd64" >> $GITHUB_ENV
|
|
|
|
|
if: contains(matrix.os, 'windows')
|
|
|
|
|
- name: lin_arch
|
|
|
|
|
run: echo "BIN_ARCH=linux-amd64" >> $GITHUB_ENV
|
|
|
|
|
if: contains(matrix.os, 'ubuntu')
|
|
|
|
|
- name: mac_arch
|
|
|
|
|
run: echo "BIN_ARCH=darwin-amd64" >> $GITHUB_ENV
|
|
|
|
|
if: contains(matrix.os, 'mac')
|
|
|
|
|
- name: Fill variables
|
|
|
|
|
run: |
|
|
|
|
|
echo "BIN_PATH=./target/release/alfis" >> $GITHUB_ENV
|
|
|
|
|
echo "ZIP_NAME=alfis_${{ needs.get_version.outputs.project_version }}.zip" >> $GITHUB_ENV
|
|
|
|
|
echo "ZIP_NAME=alfis-${{env.BIN_ARCH}}-v${{ needs.get_version.outputs.project_version }}.zip" >> $GITHUB_ENV
|
|
|
|
|
- name: Windows variables
|
|
|
|
|
if: contains(matrix.os, 'windows')
|
|
|
|
|
run: |
|
|
|
|
|
echo "BIN_PATH=target/release/alfis.exe" >> $GITHUB_ENV
|
|
|
|
|
echo "ZIP_NAME=alfis_${{ needs.get_version.outputs.project_version }}.zip" >> $GITHUB_ENV
|
|
|
|
|
echo "ZIP_NAME=alfis-${{env.BIN_ARCH}}-v${{ needs.get_version.outputs.project_version }}.zip" >> $GITHUB_ENV
|
|
|
|
|
- name: Packaging
|
|
|
|
|
uses: papeloto/action-zip@v1
|
|
|
|
|
with:
|
|
|
|
|
files: ${{ env.BIN_PATH }} alfis.cfg
|
|
|
|
|
files: ${{ env.BIN_PATH }} alfis.cfg README.md LICENSE
|
|
|
|
|
dest: ${{ env.ZIP_NAME }}
|
|
|
|
|
- name: Upload binary
|
|
|
|
|
id: upload-binary
|
|
|
|
|