This repository has been archived by the owner on May 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from Jigsaw-Code/bemasc-ci
Add platform builds to the continuous integration
- Loading branch information
Showing
5 changed files
with
94 additions
and
68 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
name: Build and Test | ||
|
||
concurrency: | ||
group: ${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 10 | ||
steps: | ||
|
||
- name: | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build | ||
run: go build -v ./... | ||
|
||
- name: Test | ||
run: go test -v -race -bench=. -benchtime=100ms ./... | ||
|
||
linux: | ||
name: Electron Build | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 10 | ||
needs: test | ||
steps: | ||
- name: | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build for Linux | ||
run: make linux | ||
|
||
- name: Build for Windows | ||
run: make windows | ||
|
||
apple: | ||
name: Apple Build | ||
runs-on: macos-12 | ||
timeout-minutes: 30 | ||
needs: test | ||
env: | ||
# Prevent gomobile from interacting with the Android NDK. The runner's | ||
# default NDK is not compatible with gomobile, but we aren't trying | ||
# to build for Android anyway. | ||
ANDROID_HOME: "" | ||
ANDROID_NDK_HOME: "" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set XCode Version | ||
run: sudo xcode-select -switch /Applications/Xcode_13.3.app | ||
|
||
- name: Build for Apple platforms | ||
# Change the Go version to 1.18. (Default is 1.17.) | ||
run: | | ||
env PATH="${GOROOT_1_18_X64}:${PATH}" | ||
make apple | ||
android: | ||
name: Android Build | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 10 | ||
needs: test | ||
env: | ||
# Let gomobile choose its preferred NDK version | ||
ANDROID_NDK_HOME: "" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build Outline Library | ||
run: make android | ||
|
||
- name: Build Intra Library | ||
run: make intra |
This file was deleted.
Oops, something went wrong.
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
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