-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move all Linux build logic into the workflow
- Loading branch information
Showing
2 changed files
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,18 +49,28 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Install Ruby | ||
run: apt-get update && apt-get install -y ruby zlib1g-dev | ||
|
||
# Build with dynamically linked stdlib | ||
- name: Build | ||
run: LANG=en_US.UTF-8 LC_CTYPE=UTF-8 rake build[release] | ||
run: swift build -c release | ||
- name: Set tag name | ||
run: echo "TAG_NAME=$(echo $GITHUB_REF | cut -c 11-)" >> $GITHUB_ENV | ||
- name: Zip release | ||
uses: montudor/[email protected] | ||
with: | ||
args: zip -j XCLogParser-linux-amd64.zip .build/release/xclogparser | ||
- name: Rename zip | ||
run: "mkdir releases && mv XCLogParser-linux-amd64.zip releases/XCLogParser-linux-amd64-$TAG_NAME.zip" | ||
|
||
# Build standalone | ||
- name: Build | ||
run: swift build -c release --static-swift-stdlib | ||
- name: Zip release | ||
uses: montudor/[email protected] | ||
with: | ||
args: zip -j XCLogParser-linux-amd64-standalone.zip .build/release/xclogparser | ||
|
||
# Package | ||
- name: Rename Zip Files | ||
run: "mkdir -p releases && mv *.zip releases/" | ||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v1-release | ||
with: | ||
|