27 lines
450 B
YAML
27 lines
450 B
YAML
name: build
|
|
|
|
on:
|
|
push:
|
|
branches: [prod]
|
|
|
|
jobs:
|
|
test-and-build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install Zig
|
|
run: |
|
|
sudo apt-get install snapd
|
|
snap install zig --classic --beta
|
|
|
|
- name: Build binary
|
|
run: zig build
|
|
|
|
- name: Prepare artifact
|
|
run: |
|
|
mkdir -p out
|
|
cp zig-out/bin/snake out/
|