mirror of
https://github.com/aljazceru/ark.git
synced 2026-01-15 01:34:20 +01:00
55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
name: Build and Upload Binaries and WASM
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.21.0
|
|
|
|
- name: Build binaries
|
|
run: make build-all
|
|
|
|
- name: Build WASM SDK
|
|
run: |
|
|
cd pkg/client-sdk
|
|
make build-wasm
|
|
|
|
- name: Upload server binaries
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: server-binaries
|
|
path: ./server/build
|
|
if-no-files-found: error
|
|
retention-days: 5
|
|
compression-level: 6
|
|
overwrite: true
|
|
|
|
- name: Upload client binaries
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: client-binaries
|
|
path: ./client/build
|
|
if-no-files-found: error
|
|
retention-days: 5
|
|
compression-level: 6
|
|
overwrite: true
|
|
|
|
- name: Upload WASM SDK
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: wasm-sdk
|
|
path: pkg/client-sdk/build
|
|
if-no-files-found: error
|
|
retention-days: 5
|
|
compression-level: 0
|
|
overwrite: true |