test new github workflow
This commit is contained in:
103
.github/workflows/build.yml
vendored
103
.github/workflows/build.yml
vendored
@@ -1,7 +1,6 @@
|
|||||||
name: Build Executables
|
name: Build Executables
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
name: Run tests
|
name: Run tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -86,30 +85,6 @@ jobs:
|
|||||||
name: neko-lin
|
name: neko-lin
|
||||||
path: neko-lin.tar.gz
|
path: neko-lin.tar.gz
|
||||||
|
|
||||||
build-web:
|
|
||||||
name: Build Web binary
|
|
||||||
needs: tests
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Set up Go
|
|
||||||
uses: actions/setup-go@v3
|
|
||||||
with:
|
|
||||||
go-version: 1.19
|
|
||||||
- name: Build Web binary
|
|
||||||
shell: bash
|
|
||||||
run: GOOS=js GOARCH=wasm go build -v -ldflags "-w -s" -o dist/web/neko.wasm
|
|
||||||
- name: Copy WASM exec script
|
|
||||||
shell: bash
|
|
||||||
run: cp $(go env GOROOT)/misc/wasm/wasm_exec.js dist/web/.
|
|
||||||
- name: Upload Web build
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: neko-web
|
|
||||||
path: |
|
|
||||||
dist/web/
|
|
||||||
LICENSE
|
|
||||||
|
|
||||||
upload-bundle:
|
upload-bundle:
|
||||||
name: Bundle binaries with dev assets
|
name: Bundle binaries with dev assets
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -138,81 +113,3 @@ jobs:
|
|||||||
neko-lin.tar.gz
|
neko-lin.tar.gz
|
||||||
neko-mac.tar.gz
|
neko-mac.tar.gz
|
||||||
neko.exe
|
neko.exe
|
||||||
|
|
||||||
deploy-win:
|
|
||||||
name: Deploy Windows build to itch.io
|
|
||||||
if: startsWith(github.event.ref, 'refs/tags/v')
|
|
||||||
needs: build-win
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: neko-win
|
|
||||||
- uses: josephbmanley/butler-publish-itchio-action@master
|
|
||||||
env:
|
|
||||||
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
|
|
||||||
CHANNEL: windows
|
|
||||||
ITCH_GAME: neko
|
|
||||||
ITCH_USER: sinisterstuf
|
|
||||||
PACKAGE: neko.exe
|
|
||||||
VERSION: ${{github.ref_name}}
|
|
||||||
|
|
||||||
deploy-mac:
|
|
||||||
name: Deploy MacOs build to itch.io
|
|
||||||
if: startsWith(github.event.ref, 'refs/tags/v')
|
|
||||||
needs: build-mac
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: neko-mac
|
|
||||||
- name: Extract tarball
|
|
||||||
shell: bash
|
|
||||||
run: tar -zxvf neko-mac.tar.gz
|
|
||||||
- uses: josephbmanley/butler-publish-itchio-action@master
|
|
||||||
env:
|
|
||||||
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
|
|
||||||
CHANNEL: mac
|
|
||||||
ITCH_GAME: neko
|
|
||||||
ITCH_USER: sinisterstuf
|
|
||||||
PACKAGE: neko
|
|
||||||
VERSION: ${{github.ref_name}}
|
|
||||||
|
|
||||||
deploy-lin:
|
|
||||||
name: Deploy Linux build to itch.io
|
|
||||||
if: startsWith(github.event.ref, 'refs/tags/v')
|
|
||||||
needs: build-lin
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: neko-lin
|
|
||||||
- name: Extract tarball
|
|
||||||
shell: bash
|
|
||||||
run: tar -zxvf neko-lin.tar.gz
|
|
||||||
- uses: josephbmanley/butler-publish-itchio-action@master
|
|
||||||
env:
|
|
||||||
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
|
|
||||||
CHANNEL: linux
|
|
||||||
ITCH_GAME: neko
|
|
||||||
ITCH_USER: sinisterstuf
|
|
||||||
PACKAGE: neko
|
|
||||||
VERSION: ${{github.ref_name}}
|
|
||||||
|
|
||||||
deploy-web:
|
|
||||||
name: Deploy Web build to itch.io
|
|
||||||
if: startsWith(github.event.ref, 'refs/tags/v')
|
|
||||||
needs: build-web
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: neko-web
|
|
||||||
- uses: josephbmanley/butler-publish-itchio-action@master
|
|
||||||
env:
|
|
||||||
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
|
|
||||||
CHANNEL: web
|
|
||||||
ITCH_GAME: neko
|
|
||||||
ITCH_USER: sinisterstuf
|
|
||||||
PACKAGE: dist/web
|
|
||||||
VERSION: ${{github.ref_name}}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user