Skip to content

Commit 39721d8

Browse files
Add build-tests
1 parent 1d33de3 commit 39721d8

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

.github/workflows/build.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
name: Test Builds
6+
7+
on:
8+
push:
9+
branches: [ "main", "v0_8" ]
10+
pull_request:
11+
types: [ "opened", "edited" ]
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
test:
18+
name: 'Build Library'
19+
strategy:
20+
matrix:
21+
os: [macOS-latest]
22+
arch: [x86_64, arm64]
23+
dc: [ldc-beta, dmd-master]
24+
build: [debug, release]
25+
exclude:
26+
- { dc: dmd-master, arch: arm64 }
27+
28+
runs-on: ${{ matrix.os }}
29+
steps:
30+
- uses: actions/checkout@v4
31+
32+
- name: Install compiler
33+
uses: dlang-community/setup-dlang@v2
34+
with:
35+
compiler: ${{ matrix.dc }}
36+
37+
- name: 'Build with ${{ matrix.os }} ${{ matrix.dc }} (${{ matrix.build }})'
38+
run: |
39+
dub build --build=${{ matrix.build }}

dub.sdl

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dependency "imagefmt" version="~>2.1.0"
77
dependency "inmath" version="~>1.3.0"
88
dependency "i2d-opengl" version="~>1.0.0"
99
dependency "fghj" version="~>1.0.2"
10-
dependency "numem" version="~>0.20.1"
10+
dependency "numem" version="~>0.25.0"
1111
versions "GL_32" "GL_ARB_gl_spirv" "GL_KHR_blend_equation_advanced" "GL_ARB_texture_filter_anisotropic"
1212
stringImportPaths "shaders/"
1313
preBuildCommands "dub run gitver -- --prefix IN --file source/inochi2d/ver.d --mod inochi2d.ver --appname Inochi2D"

0 commit comments

Comments
 (0)