-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4250bf6
commit 0cf4d29
Showing
1 changed file
with
75 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,75 @@ | ||
name: Go | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
|
||
build: | ||
name: create-eboot | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ^1.13 | ||
id: go | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
|
||
- name: Get dependencies | ||
run: | | ||
go get -v -t -d ./... | ||
if [ -f Gopkg.toml ]; then | ||
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh | ||
dep ensure | ||
fi | ||
- name: Build create-eboot windows | ||
run: | | ||
cd src/tools/create-eboot | ||
GOOS=windows go build -ldflags='-X main.TOOL_MODE=SELF' -o create-eboot.exe | ||
- name: Upload create-eboot windows | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: create-eboot.exe | ||
path: src/tools/create-eboot/create-eboot.exe | ||
|
||
- name: Build create-eboot linux | ||
run: | | ||
cd src/tools/create-eboot | ||
go build -ldflags='-X main.TOOL_MODE=SELF' -o create-eboot | ||
- name: Upload create-eboot linux | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: create-eboot | ||
path: src/tools/create-eboot/create-eboot | ||
|
||
- name: Build create-lib windows | ||
run: | | ||
cd src/tools/create-eboot | ||
GOOS=windows go build -ldflags='-X main.TOOL_MODE=SPRX' -o create-lib.exe | ||
- name: Upload create-lib windows | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: create-lib.exe | ||
path: src/tools/create-eboot/create-lib.exe | ||
|
||
- name: Build create-lib linux | ||
run: | | ||
cd src/tools/create-eboot | ||
go build -ldflags='-X main.TOOL_MODE=SPRX' -o create-lib | ||
- name: Upload create-lib linux | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: create-lib | ||
path: src/tools/create-eboot/create-lib |