Compare commits
2 Commits
a2779e6cfd
...
cef711a497
Author | SHA1 | Date |
---|---|---|
Rekai Nyangadzayi Musuka | cef711a497 | |
Rekai Nyangadzayi Musuka | 5951a948e9 |
|
@ -0,0 +1,62 @@
|
||||||
|
name: Nightly
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- "**.zig"
|
||||||
|
- "**.zig.zon"
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
|
runs-on: ${{matrix.os}}
|
||||||
|
steps:
|
||||||
|
- uses: goto-bus-stop/setup-zig@v2
|
||||||
|
with:
|
||||||
|
version: 0.11.0
|
||||||
|
- name: prepare-linux
|
||||||
|
if: runner.os == 'Linux'
|
||||||
|
run: |
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install libgtk-3-dev libsdl2-dev
|
||||||
|
- name: prepare-windows
|
||||||
|
if: runner.os == 'Windows'
|
||||||
|
run: |
|
||||||
|
vcpkg integrate install
|
||||||
|
vcpkg install sdl2:x64-windows
|
||||||
|
git config --global core.autocrlf false
|
||||||
|
- name: prepare-macos
|
||||||
|
if: runner.os == 'macOS'
|
||||||
|
run: |
|
||||||
|
brew install sdl2
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: build
|
||||||
|
run: zig build -Doptimize=ReleaseSafe -Dcpu=baseline
|
||||||
|
- name: prepare-executable
|
||||||
|
run: |
|
||||||
|
mv zig-out/lib/* zig-out/bin
|
||||||
|
- name: upload
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: zba-${{matrix.os}}
|
||||||
|
path: zig-out/bin
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- uses: goto-bus-stop/setup-zig@v2
|
||||||
|
with:
|
||||||
|
version: 0.11.0-dev.3395+1e7dcaa3a
|
||||||
|
- run: zig fmt src/**/*.zig
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
.version = "0.1.0",
|
.version = "0.1.0",
|
||||||
.dependencies = .{
|
.dependencies = .{
|
||||||
.@"zig-clap" = .{
|
.@"zig-clap" = .{
|
||||||
.url = "https://github.com/Hejsil/zig-clap/archive/bdb5853b678d68f342ec65b04a6785af522ca6c9.tar.gz",
|
.url = "https://github.com/Hejsil/zig-clap/archive/f49b94700e0761b7514abdca0e4f0e7f3f938a93.tar.gz",
|
||||||
.hash = "12202af04ec78191f2018458a7be29f54e0d9118f7688e7a226857acf754d68b8473",
|
.hash = "1220f48518ce22882e102255ed3bcdb7aeeb4891f50b2cdd3bd74b5b2e24d3149ba2",
|
||||||
},
|
},
|
||||||
.@"zba-util" = .{
|
.@"zba-util" = .{
|
||||||
// Necessary to use paoda/arm32 as a git submodule
|
// Necessary to use paoda/arm32 as a git submodule
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 4d565b54227b862c1540719e0e21a36d649e87d5
|
Subproject commit 602aeb7f1d33da71626aff54a25ef69fef7c613b
|
2
lib/zgui
2
lib/zgui
|
@ -1 +1 @@
|
||||||
Subproject commit 25fa193b1f324d9183b3808bc6582ee7d0e3b13f
|
Subproject commit 2e4f8d1409ffbf957d5edaa080492e1b50ac059f
|
Loading…
Reference in New Issue