Skip to content

CI: add testing script #12

CI: add testing script

CI: add testing script #12

name: build and run
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
schedule:
- cron: "0 0 * * 0"
# runs on 00:00 every Sunday (UTC)
# 00:00 UTC = 08:00 Beijing
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: cargo build
run:
cargo build --release;
- name: clone scene
run:
pushd ..;
git clone https://github.com/w3ntao/pbrt-v4-scenes-json.git;
popd;
- name: render
run:
bash .github/workflows/render_test_scene.sh