aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorRadek Micek <radek.micek@gmail.com>2024-11-12 12:12:27 +0100
committerRadek Micek <radek.micek@gmail.com>2025-02-01 12:07:23 +0100
commit80a19191017aae0f0b7eb9872c6720386f66b980 (patch)
treef97ae83b3c8d0d8209e6fb60b3435515cd345adc /.github
parent91489225b6eb92dc9a6985744a35fcf0f261333a (diff)
Add support for C3 to bindgen
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/gen_bindings.yml44
1 files changed, 44 insertions, 0 deletions
diff --git a/.github/workflows/gen_bindings.yml b/.github/workflows/gen_bindings.yml
index d1741a38..56c57c9c 100644
--- a/.github/workflows/gen_bindings.yml
+++ b/.github/workflows/gen_bindings.yml
@@ -66,6 +66,10 @@ jobs:
with:
repository: colinbellino/sokol-jai
path: bindgen/sokol-jai
+ - uses: actions/checkout@main
+ with:
+ repository: floooh/sokol-c3
+ path: bindgen/sokol-c3
- name: generate
run: |
cd bindgen
@@ -108,6 +112,12 @@ jobs:
name: ignore-me-jai
retention-days: 1
path: bindgen/sokol-jai/sokol
+ - name: upload-c3-artifact
+ uses: actions/upload-artifact@main
+ with:
+ name: ignore-me-c3
+ retention-days: 1
+ path: bindgen/sokol-c3/sokol.c3l
test-zig:
needs: gen-bindings
@@ -323,6 +333,40 @@ jobs:
- name: build
run: echo "run jai here"
+ test-c3:
+ needs: gen-bindings
+ strategy:
+ # Continue build even if some platforms fail.
+ fail-fast: false
+ matrix:
+ include:
+ - os: macos-latest
+ arch: arm64
+ - os: ubuntu-latest
+ arch: x64
+ - os: windows-latest
+ arch: x64
+ runs-on: ${{matrix.os}}
+ steps:
+ - uses: actions/checkout@main
+ with:
+ repository: floooh/sokol-c3
+ - uses: radekm/setup-c3@v2
+ with:
+ version: v0.6.6
+ - uses: actions/download-artifact@main
+ with:
+ name: ignore-me-c3
+ path: sokol.c3l
+ - name: prepare
+ if: runner.os == 'Linux'
+ run: |
+ sudo apt-get update
+ sudo apt-get install libgl1-mesa-dev libegl1-mesa-dev mesa-common-dev xorg-dev libasound-dev
+ - name: build
+ shell: bash
+ run: ./build-examples.sh
+
# only deploy the bindings for commits on the main branch
deploy-zig:
needs: test-zig