-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (43 loc) · 1.32 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: D
on: [push]
jobs:
build:
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
- uses: korandoru/setup-zig@v1
with:
zig-version: master
- uses: dlang-community/setup-dlang@v2
with:
compiler: ldc-master
- name: prepare-linux
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install libglu1-mesa-dev mesa-common-dev xorg-dev libasound-dev
- name: (Dub) Build Native
if: runner.os != 'Windows'
run: |
dub build :clear
dub build :sgl_context
dub build :sgl_points
dub build :debugtext
dub build :cube
dub build :blend
dub build :triangle
dub build :mrt
dub build :user_data
dub build :imgui
dub build :droptest
- name: (Zig) Running Test
if: runner.os != 'Windows'
run: zig build test -DzigCC
- name: (Zig) Build Native
run: zig build -DzigCC --summary all
- name: (Zig + emsdk) Build Wasm
run: zig build -DzigCC --summary all -Dtarget=wasm32-emscripten-none -Doptimize=ReleaseSmall