diff options
| author | Andre Weissflog <floooh@gmail.com> | 2024-08-14 18:24:45 +0200 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2024-08-14 18:24:45 +0200 |
| commit | c519f830a6b2fd7062195ca1b5cb2a17db82fd93 (patch) | |
| tree | ae8ec3ea69b6c93ff5eeee7ce54db39f3ad3ccfb /.github | |
| parent | 9fe3ba6608759fe322ab04710d985c6f2e403b6e (diff) | |
gh actions: add jai bindgen (no proper testing yet though)
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/gen_bindings.yml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/.github/workflows/gen_bindings.yml b/.github/workflows/gen_bindings.yml index 73586bd6..464f4fe9 100644 --- a/.github/workflows/gen_bindings.yml +++ b/.github/workflows/gen_bindings.yml @@ -62,6 +62,10 @@ jobs: with: repository: kassane/sokol-d path: bindgen/sokol-d + - uses: actions/checkout@v4 + with: + repository: colinbellino/sokol-jai + path: bindgen/sokol-jai - name: generate run: | cd bindgen @@ -98,6 +102,12 @@ jobs: name: ignore-me-d retention-days: 1 path: bindgen/sokol-d/src/sokol + - name: upload-jai-artifact + uses: actions/upload-artifact@v3 + with: + name: ignore-me-jai + retention-days: 1 + path: bindgen/sokol-jai/sokol test-zig: needs: gen-bindings @@ -290,6 +300,27 @@ jobs: sudo apt-get install libgl1-mesa-dev libegl1-mesa-dev mesa-common-dev xorg-dev libasound-dev - name: build run: zig build --summary all + test-jai: + needs: gen-bindings + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{matrix.os}} + steps: + - uses: actions/checkout@v4 + with: + repository: colinbellino/sokol-jai + - uses: actions/download-artifact@v3 + with: + name: ignore-me-jai + path: sokol + - 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 + run: echo "run jai here" # only deploy the bindings for commits on the main branch deploy-zig: @@ -403,3 +434,24 @@ jobs: git add -A git diff-index --quiet HEAD || git commit -m "updated (https://github.com/floooh/sokol/commit/${{ github.sha }})" git push + + deploy-jai: + needs: test-jai + if: github.ref == 'refs/heads/master' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + repository: colinbellino/sokol-jai + ssh-key: ${{ secrets.GHACTIONS_JAI_PUSH }} + - uses: actions/download-artifact@v3 + with: + name: ignore-me-jai + path: sokol + - name: "commit and push" + run: | + git config user.email "none" + git config user.name "GH Action" + git add -A + git diff-index --quiet HEAD || git commit -m "updated (https://github.com/floooh/sokol/commit/${{ github.sha }})" + git push
\ No newline at end of file |