Skip to content

Commit

Permalink
Compress releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Inrixia committed Oct 19, 2024
1 parent 09f1399 commit e01f50e
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/autoDev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
strategy:
matrix:
platform:
- os-name: Linux-x86_64
- os-name: linux-x86_64
runs-on: ubuntu-latest

- os-name: Windows-x86_64
- os-name: windows-x86_64
runs-on: windows-latest

- os-name: macOS-x86_64
Expand Down Expand Up @@ -66,21 +66,28 @@ jobs:
run: pnpm run build

- name: Rename Float for Windows
if: matrix.platform.runs-on == 'windows-latest'
run: mv ./build/float ./build/float.exe
if: matrix.platform.runs-on == 'windows-latest'

- name: Test Build Binaries
run: pnpm run test

- name: Rename binary
run: mv ./build/float ./build/float-${{ matrix.platform.os-name }}
- name: Make artifacts output dir
run: mkdir ./artifacts

- name: Archive binary
run: strip ./build/float && tar -czf ./artifacts/${{ matrix.platform.os-name }}.tar.gz -C ./build float
if: matrix.platform.runs-on != 'windows-latest'

- name: Archive binary (windows)
run: powershell -Command "Compress-Archive -Path './build/float.exe' -DestinationPath './artifacts/${{ matrix.platform.os-name }}.zip'"
if: matrix.platform.runs-on == 'windows-latest'

- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.platform.runs-on }}
path: ./build/
name: ${{ matrix.platform.runs-on }}
path: ./artifacts/

# Release to GitHub (runs after tests)
Release:
Expand Down

0 comments on commit e01f50e

Please sign in to comment.