Skip to content

Commit

Permalink
Add build-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaTheFoxgirl committed Dec 26, 2024
1 parent 1d33de3 commit 39721d8
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Test Builds

on:
push:
branches: [ "main", "v0_8" ]
pull_request:
types: [ "opened", "edited" ]

permissions:
contents: read

jobs:
test:
name: 'Build Library'
strategy:
matrix:
os: [macOS-latest]
arch: [x86_64, arm64]
dc: [ldc-beta, dmd-master]
build: [debug, release]
exclude:
- { dc: dmd-master, arch: arm64 }

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4

- name: Install compiler
uses: dlang-community/setup-dlang@v2
with:
compiler: ${{ matrix.dc }}

- name: 'Build with ${{ matrix.os }} ${{ matrix.dc }} (${{ matrix.build }})'
run: |
dub build --build=${{ matrix.build }}
2 changes: 1 addition & 1 deletion dub.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dependency "imagefmt" version="~>2.1.0"
dependency "inmath" version="~>1.3.0"
dependency "i2d-opengl" version="~>1.0.0"
dependency "fghj" version="~>1.0.2"
dependency "numem" version="~>0.20.1"
dependency "numem" version="~>0.25.0"
versions "GL_32" "GL_ARB_gl_spirv" "GL_KHR_blend_equation_advanced" "GL_ARB_texture_filter_anisotropic"
stringImportPaths "shaders/"
preBuildCommands "dub run gitver -- --prefix IN --file source/inochi2d/ver.d --mod inochi2d.ver --appname Inochi2D"
Expand Down

0 comments on commit 39721d8

Please sign in to comment.