Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Updated workflow to build desync
Browse files Browse the repository at this point in the history
  • Loading branch information
fire committed Apr 7, 2024
1 parent cf58609 commit 974ce57
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/desync.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Validate
name: Build desync

on:
push:
# Always run when there are new commits
branches:
- '**'
# Always run when there are pull requests
pull_request:
branches:
- '**'
Expand Down Expand Up @@ -39,3 +37,23 @@ jobs:
- run: go test
- run: go build ./cmd/desync

- name: Rename to triplet scheme
id: rename
run: |
TRIPLET=""
if [[ '${{ matrix.os }}' == 'windows-latest' ]]; then
TRIPLET="x86_64-pc-windows-gnu"
elif [[ '${{ matrix.os }}' == 'macos-latest' ]]; then
TRIPLET="x86_64-apple-darwin"
else
TRIPLET="x86_64-unknown-linux-gnu"
fi
mv ./desync ./desync-$TRIPLET
echo "::set-output name=path::./desync-$TRIPLET"
- name: Upload desync binary
uses: actions/upload-artifact@v2
with:
name: desync-${{ matrix.os }}
path: ${{ steps.rename.outputs.path }}

0 comments on commit 974ce57

Please sign in to comment.