This repository has been archived by the owner on Jun 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #2 from kubenav/add-eks-support
Add Support for EKS
- Loading branch information
Showing
4 changed files
with
162 additions
and
0 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,52 @@ | ||
name: Test | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
path: src/github.com/kubenav/bind | ||
|
||
- name: Setup Go 1.13 | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.13 | ||
|
||
- name: Set GOPATH | ||
run: | | ||
echo "##[set-env name=GOPATH;]$(dirname $GITHUB_WORKSPACE)/bind" | ||
echo "##[add-path]$(dirname $GITHUB_WORKSPACE)/bind/bin" | ||
shell: bash | ||
|
||
- name: Install Dependencies | ||
run: | | ||
cd $GOPATH/src/github.com/kubenav/bind | ||
make dependencies | ||
- name: Generate Bindings (Android) | ||
# We must build the Android bindings on Ubuntu, | ||
# because the macOS used for GitHub Actions contains an outdated NDK version. | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
cd $GOPATH/src/github.com/kubenav/bind | ||
gomobile init | ||
make bindings-android | ||
- name: Generate Bindings (iOS) | ||
if: matrix.os == 'macos-latest' | ||
# We must unset the ANDROID_HOME and ANDROID_NDK_HOME environment variables, | ||
# otherwise gomobile tries to generate the bindings for Android. | ||
run: | | ||
cd $GOPATH/src/github.com/kubenav/bind | ||
unset ANDROID_HOME | ||
unset ANDROID_NDK_HOME | ||
gomobile init | ||
make bindings-ios |
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