Skip to content

Add automatic native library builds using GitHub Actions #1

Add automatic native library builds using GitHub Actions

Add automatic native library builds using GitHub Actions #1

Workflow file for this run

name: Build native libraries
on: [push, pull_request]
defaults:
run:
shell: bash
env:
DOCKER_CACHE: ${{ github.workspace }}/.docker-cache
jobs:
build_with_docker:
name: ${{ matrix.platform }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
include:

Check failure on line 16 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build native libraries

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 16, Col: 7): Unexpected value 'include'
- platform: windows
target: docker-all-windows-llvm
- platform: linux
target: docker-all-linux
- platform: android
target: docker-all-android
- platform: webgl
target: docker-all-webgl
steps:
- uses: actions/checkout@v3
- name: Cache SCons files
uses: actions/cache@v4
with:
path: $DOCKER_CACHE
- name: Build
run: make -C Plugins ${{ matrix.target }} DOCKER_BUILD_ARGS="--cache-to type=local,dest=$DOCKER_CACHE --cache-from type=local,src=$DOCKER_CACHE"
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.platform }}
path: |
Plugins/lib/${{ matrix.platform }}/**.bc
Plugins/lib/${{ matrix.platform }}/**.dll
Plugins/lib/${{ matrix.platform }}/**.dylib
Plugins/lib/${{ matrix.platform }}/**.so
build_with_macos:
name: macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: make -C Plugins all-apple
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: macos
path: |
Plugins/lib/macos/**.dylib