-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.3 KB
/
Copy pathCI.yaml
File metadata and controls
51 lines (43 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: render
on:
push:
branches:
- master
workflow_dispatch:
permissions:
contents: write
concurrency:
group: render-${{ github.ref }}
cancel-in-progress: true
jobs:
render:
if: github.actor != 'github-actions[bot]' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4.1.1
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
- name: extract OIDN
run: |
rm -rf oidn/oidn
tar -xzf oidn/oidn-2.4.1.x86_64.linux.tar.gz -C oidn
mv oidn/oidn-2.4.1.x86_64.linux oidn/oidn
- name: render
run: |
export LD_LIBRARY_PATH=./oidn/oidn/lib:$LD_LIBRARY_PATH
cargo run --locked --release -F oidn -- --multiplier=4 --all
cargo test --locked --release -F oidn --all-targets --all
- name: commit
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git pull --rebase --autostash
git add renders
if git diff --cached --quiet; then
echo "No render changes to commit"
else
git commit -m "render"
git push
fi