Debian Codegraph @

.github/workflows/CI.yml

raw symbols SCIP
1 on: [push, pull_request]
2
3 name: CI Linux
4
5 # Least privilege: this workflow only reads the repo and runs tests.
6 permissions:
7 contents: read
8
9 jobs:
10 test-amd64:
11 name: rust-libxml amd64 CI
12 runs-on: ubuntu-latest
13 strategy:
14 matrix:
15 with_default_bindings: [false, true]
16 steps:
17 - name: install dependencies
18 run: |
19 sudo apt-get update
20 sudo apt-get install -y libxml2-dev
21 - name: Set up LIBXML2 env var if compiling with the default bindings
22 run: echo "LIBXML2=$(pkg-config libxml-2.0 --variable=libdir)/libxml2.so" >> "$GITHUB_ENV"
23 if: ${{ matrix.with_default_bindings }}
24 - uses: actions/checkout@v6
25 - uses: dtolnay/rust-toolchain@stable
26 - name: run tests
27 run: cargo test
28
29 test-arm64:
30 name: rust-libxml arm64 CI
31 runs-on: ubuntu-24.04-arm
32 steps:
33 - name: install dependencies
34 run: |
35 sudo apt-get update
36 sudo apt-get install -y libxml2-dev
37 - uses: actions/checkout@v6
38 - uses: dtolnay/rust-toolchain@stable
39 - name: run tests
40 run: cargo test
41
42 test-newer-libxml2:
43 strategy:
44 matrix:
45 libxml_version: ["2.12.9", "2.13.8", "2.14.1", "2.15.1"]
46 name: With libxml ${{ matrix.libxml_version }}
47 runs-on: ubuntu-latest
48 steps:
49 - name: install dependencies
50 run: |
51 sudo apt-get update
52 sudo apt-get install -y libpython3-dev
53 - uses: actions/checkout@v6
54 - name: Install libxml ${{ matrix.libxml_version }} by hand
55 run: |
56 wget https://download.gnome.org/sources/libxml2/$(echo ${{ matrix.libxml_version }} | sed -e 's/\.[0-9]*$//')/libxml2-${{ matrix.libxml_version }}.tar.xz
57 tar xf libxml2-${{ matrix.libxml_version }}.tar.xz
58 cd libxml2-${{ matrix.libxml_version }}
59 ./configure
60 make
61 sudo make install
62 - uses: dtolnay/rust-toolchain@stable
63 - name: run tests
64 run: cargo test
65 env:
66 LD_LIBRARY_PATH: /usr/local/lib