Skip to content

Fix WebGL crate versions #164

Fix WebGL crate versions

Fix WebGL crate versions #164

Workflow file for this run

on:
push:
branches:
- main
tags-ignore:
- '*'
pull_request:
branches:
- '*'
tags-ignore:
- '*'
name: Continuous Integration
jobs:
build:
name: Build [${{ matrix.renderer }} | ${{ matrix.config.name }}]
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
renderer:
- OpenGL
config:
- { name: Linux (x86), os: ubuntu-latest, target: "x86_64-unknown-linux-gnu" }
- { name: Linux (ARM), os: ubuntu-latest, target: "aarch64-unknown-linux-gnu" }
- { name: MacOS (x86), os: macos-latest, target: "x86_64-apple-darwin" }
- { name: MacOS (ARM), os: macos-latest, target: "aarch64-apple-darwin" }
- { name: Windows (x86), os: windows-latest, target: "x86_64-pc-windows-msvc" }
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.config.target }}
- name: Setup aarch64
if: matrix.config.target == 'aarch64-unknown-linux-gnu'
run: |
sudo apt update
sudo apt install gcc-aarch64-linux-gnu
echo "[target.aarch64-unknown-linux-gnu]" >> ~/.cargo/config
echo "linker = \"aarch64-linux-gnu-gcc\"" >> ~/.cargo/config
- name: Build Inox2D
run: cargo build -p inox2d --no-default-features --features owo --all-targets --target=${{ matrix.config.target }}
- name: Build Inox2D (OpenGL)
if: matrix.renderer == 'OpenGL'
run: cargo build -p inox2d-opengl --all-targets --target=${{ matrix.config.target }}
- name: Build Example (OpenGL)
if: matrix.renderer == 'OpenGL'
run: cargo build -p render-opengl --all-targets --target=${{ matrix.config.target }}
build-webgl:
name: Build WebGL Example
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
config:
- os: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- name: Build Inox2D
run: cargo build -p inox2d --no-default-features --features owo --all-targets --target=wasm32-unknown-unknown
- name: Build Inox2D (OpenGL)
if: matrix.renderer == 'OpenGL'
run: cargo build -p inox2d-opengl --all-targets --target=wasm32-unknown-unknown
- name: Build WebGL Example
run: cargo build -p render-webgl --target=wasm32-unknown-unknown