Skip to content

add unity option for simulator #2

add unity option for simulator

add unity option for simulator #2

Workflow file for this run

name: build
on:
push:
branches:
- 'develop'
pull_request:
types: [opened, reopened, review_requested]
env:
CARGO_INCREMENTAL: 0
jobs:
check-src:
runs-on: ubuntu-latest
name: check if server files changed
outputs:
status: ${{ steps.changed-files.outputs.modified_files }}
steps:
- uses: actions/checkout@v3
- uses: tj-actions/changed-files@v40
id: changed-files
with:
files: |
.github/workflows/build.yml
./**/*.rs
./**/*.toml
./**/*.ts
./**/*.svelte
./package.json
build-server:
needs: check-src
name: build-server
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup
if: needs.check-src.outputs.status
uses: ./.github/actions/setup-build
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
os: ${{ matrix.os }}
shaderc: true
- name: Rust cache
if: needs.check-src.outputs.status
uses: swatinem/rust-cache@v2
with:
workspaces: './server/src-tauri -> target'
- name: install dependencies (ubuntu only)
if: needs.check-src.outputs.status && matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev librsvg2-dev
- name: Sync node version and setup cache
if: needs.check-src.outputs.status
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: 'npm'
cache-dependency-path: server/package-lock.json
- name: build server
if: needs.check-src.outputs.status
run: |
python3 build.py server build