-
Notifications
You must be signed in to change notification settings - Fork 21
74 lines (65 loc) · 2.06 KB
/
pr-check.yml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: PR/CI Check
on:
pull_request:
push:
branches-ignore:
- main
- release*
jobs:
tests:
name: Tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
target: x86_64-pc-windows-msvc
- os: windows-latest
target: aarch64-pc-windows-msvc
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
# - os: ubuntu-latest
# target: aarch64-unknown-linux-gnu
# - os: ubuntu-latest
# target: arm-unknown-linux-gnueabihf
- os: macos-latest
target: x86_64-apple-darwin
- os: macos-14
target: aarch64-apple-darwin
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
vsix-target: alpine-x64
# - os: ubuntu-latest
# target: aarch64-unknown-linux-musl
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Rust Tool Chain setup
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: ${{ matrix.target }}
- name: Cargo Fetch
run: cargo fetch
- name: Add Conda to PATH
run: |
if [-eq "${{ matrix.os }}" "windows-latest"]; then
echo "PATH=$PATH;$CONDA" >> "$GITHUB_ENV"
else
echo "PATH=$PATH:$CONDA" >> "$GITHUB_ENV"
fi
- name: Install pyenv
if: startsWith( matrix.os, 'windows')
run: |
choco install pyenv-win -y
pyenv install 3.12.3 3.11.9 3.10.14 3.9.19 3.8.19
- name: Install pyenv
if: startsWith( matrix.os, 'ubuntu') || startsWith( matrix.os, 'macos')
run: |
curl https://pyenv.run | bash
echo PYENV_ROOT="$HOME/.pyenv" >> $GITHUB_ENV
echo PATH="$HOME/.pyenv/bin:$PATH" >> $GITHUB_ENV
~/.pyenv/bin/pyenv install 3.12.3 3.11.9 3.10.14 3.9.19 3.8.19
- name: Run Tests
run: cargo test --frozen --all-features