Skip to content

CI: add testing script #7

CI: add testing script

CI: add testing script #7

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_ci_render_test_scene.sh