Merge branch 'master' into v2 #11
Workflow file for this run
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
name: Release | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
linux: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Deps | |
run: sudo apt update && sudo apt install -y libgtk-3-dev libayatana-appindicator3-dev | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '^1.21' | |
check-latest: true | |
- name: Set up Android NDK | |
uses: nttld/setup-ndk@v1 | |
id: setup-ndk | |
with: | |
ndk-version: r26b | |
add-to-path: false | |
- name: Build | |
run: make .PHONY | |
- name: Build Android | |
env: | |
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} | |
run: make easyss-android | |
- name: Pack | |
run: | | |
cd bin | |
zip easyss-linux-amd64.zip ./easyss | |
zip easyss-windows-amd64.zip ./easyss.exe | |
zip easyss-with-notray-linux-amd64.zip ./easyss-with-notray | |
zip easyss-server-linux-amd64.zip ./easyss-server | |
zip easyss-server-windows-amd64.zip ./easyss-server.exe | |
mv easyss-android libeasyss.so | |
zip libeasyss.so.zip ./libeasyss.so | |
- name: Build Arm64 | |
run: | | |
GOOS=linux GOARCH=arm64 make easyss-with-notray | |
GOOS=linux GOARCH=arm64 make easyss-server | |
- name: Pack Arm64 | |
run: | | |
cd bin | |
zip easyss-with-notray-linux-arm64.zip ./easyss-with-notray | |
zip easyss-server-linux-arm64.zip ./easyss-server | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: Release ${{ github.ref_name }} | |
body: TODO | |
files: bin/*.zip | |
macos: | |
runs-on: macOS-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '^1.21' | |
check-latest: true | |
- name: Build | |
run: | | |
make easyss | |
make easyss-server | |
- name: Pack | |
run: | | |
cd bin | |
zip easyss-darwin-amd64.zip ./easyss | |
zip easyss-server-darwin-amd64.zip ./easyss-server | |
- name: Build Arm64 | |
run: | | |
GOOS=darwin GOARCH=arm64 make easyss-with-notray | |
GOOS=darwin GOARCH=arm64 make easyss-server | |
- name: Pack Arm64 | |
run: | | |
cd bin | |
zip easyss-with-notray-darwin-arm64.zip ./easyss-with-notray | |
zip easyss-server-darwin-arm64.zip ./easyss-server | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: Release ${{ github.ref_name }} | |
body: TODO | |
files: bin/*.zip |