-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (46 loc) · 1.17 KB
/
Copy pathtest.yml
File metadata and controls
57 lines (46 loc) · 1.17 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
52
53
54
55
56
57
name: Rust Tests
on:
push:
branches: ["main"]
paths:
- "src/**"
- "data/libjxl/**"
- "Cargo.toml"
- "Cargo.lock"
pull_request:
branches: ["main"]
paths:
- "src/**"
- "data/libjxl/**"
- "Cargo.toml"
- "Cargo.lock"
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1.96.0
- name: Update apt packages
run: sudo apt update
- name: Install dependencies
run: sudo apt install -y libdav1d7 libdav1d-dev nasm libhwy-dev libbrotli-dev
- name: Install libjxl from local directory
run: |
cd ./data/libjxl/
sudo dpkg -i libjxl_0.11.2_amd64.deb libjxl-dev_0.11.2_amd64.deb
sudo ldconfig
pkg-config --cflags --libs libjxl
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
- name: Run tests
run: cargo test