Skip to content

Commit

Permalink
ci: add go step for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
doums committed Oct 12, 2023
1 parent 763b475 commit ec6e50d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 'stable'
- name: Install
working-directory: app
run: npm i
Expand All @@ -120,15 +124,21 @@ jobs:
- name: Build runner
working-directory: runner
run: cargo build --locked
- name: Build gopoc
working-directory: gopoc
run: go build -ldflags="-r ./lib" -o bin/vpnym_d gopoc.go
- name: Prepare artifacts
run: |
mkdir lib
mkdir go
mv app/src-tauri/target/release/libvpnym.dylib lib/
mv runner/target/debug/vpnym_d .
mv gopoc/bin/vpnym_d go/
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: vpnym_darwin
path: |
lib/
go/
vpnym_d

0 comments on commit ec6e50d

Please sign in to comment.