-
Notifications
You must be signed in to change notification settings - Fork 0
109 lines (89 loc) · 2.54 KB
/
ci.yaml
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: CI
on:
pull_request:
push:
branches:
- master
env:
CARGO_TERM_COLOR: always
RUSTFLAGS:
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Check out Git repository
uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
with:
version: 10
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Node.js dependencies
run: |
pnpm install
npm install cross-env --global
- name: Install Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Upgrade Pip
run: |
python -m pip install --upgrade pip
- name: Install Python dependencies
run: |
pip install pytest 'numpy<2' pandas matplotlib scikit-learn maturin wheel requests tqdm plotly colorama
- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: "1.85.0"
components: rustfmt, clippy
- name: Install Rust tools
uses: taiki-e/install-action@v2
with:
tool: cargo-nextest
- name: Toolchain debug
run: |
pnpm bazed --version
node --version
npm --version
pnpm --version
python --version
python3 --version
rustc --version
cargo --version
cargo fmt --version
- name: Prepare
run: |
mkdir -p target/nextest/default
ls -l
# - name: Lint
# run: |
# pnpm bazed run //:lint --verbose
- name: Build
run: |
pnpm bazed build //core --verbose
pnpm bazed build //content --verbose
pnpm bazed build //lib --verbose
# - name: Test
# run: |
# pnpm bazed run //pace/lib:test --verbose
# pnpm bazed run //pace/compiler/e2e:test --verbose