Skip to content

Commit c4bebfb

Browse files
committed
feat(*): try updating CI
1 parent 3f4c11d commit c4bebfb

File tree

4 files changed

+61
-3
lines changed

4 files changed

+61
-3
lines changed

.github/workflows/build.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
branches: [v2]
6+
pull_request:
7+
branches: [v2]
8+
9+
jobs:
10+
test:
11+
name: Build
12+
runs-on: ${{ matrix.runner }}
13+
strategy:
14+
matrix:
15+
include:
16+
- name: linux-amd64
17+
runner: ubuntu-latest
18+
target: x86_64-unknown-linux-gnu
19+
- name: win-amd64
20+
runner: windows-latest
21+
target: x86_64-pc-windows-msvc
22+
- name: macos-amd64
23+
runner: macos-latest
24+
target: x86_64-apple-darwin
25+
- name: macos-arm64
26+
runner: macos-latest
27+
target: aarch64-apple-darwin
28+
steps:
29+
- name: Checkout code
30+
uses: actions/checkout@v4
31+
# Required ahead of time because of:
32+
# https://github.com/asdf-vm/actions/issues/445
33+
- name: Setup asdf
34+
uses: asdf-vm/actions/setup@v3
35+
- name: Cache asdf
36+
id: cache-asdf
37+
uses: actions/cache@v3
38+
with:
39+
path: |
40+
/home/runner/.asdf
41+
key: ${{ runner.os }}-asdf-${{ hashFiles('**/.tool-versions') }}
42+
restore-keys: |
43+
${{ runner.os }}-asdf-
44+
- name: Install dependencies in .tool-versions
45+
if: steps.cache-asdf.outputs.cache-hit != 'true'
46+
uses: asdf-vm/actions/install@v3
47+
- name: Add Rust target
48+
run: rustup target add ${{ matrix.target }}
49+
- name: Cache Rust
50+
uses: Swatinem/rust-cache@v2
51+
- name: Build CLI
52+
run: just build --verbose --locked --release --target ${{ matrix.target }}
53+
- uses: actions/upload-artifact@v4
54+
if: ${{ failure() }}
55+
with:
56+
name: code
57+
path: /home/runner/work/odict

node/node.darwin-arm64.node

378 KB
Binary file not shown.

node/node.node

1.31 MB
Binary file not shown.

release-please-config.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
"plugins": [
33
{
44
"type": "sentence-case"
5-
}
5+
},
6+
"cargo-workspace"
67
],
78
"packages": {
89
".": {
9-
"release-type": "simple",
10-
"exclude-paths": ["js", "wasm", "python", "jvm"]
10+
"release-type": "rust",
11+
"exclude-paths": ["js", "node", "wasm", "python", "jvm"]
1112
},
1213
"js": {
1314
"release-type": "node",

0 commit comments

Comments
 (0)