Skip to content

Commit

Permalink
feat(*): try updating CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Nickersoft committed Apr 24, 2024
1 parent 3f4c11d commit c76c684
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 3 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Run Tests

on:
push:
branches: [v2]
pull_request:
branches: [v2]

jobs:
test:
name: Build
runs-on: ${{ matrix.runner }}
strategy:
matrix:
include:
- name: linux-amd64
runner: ubuntu-latest
target: x86_64-unknown-linux-gnu
- name: win-amd64
runner: windows-latest
target: x86_64-pc-windows-msvc
- name: macos-amd64
runner: macos-latest
target: x86_64-apple-darwin
- name: macos-arm64
runner: macos-latest
target: aarch64-apple-darwin
steps:
- name: Checkout code
uses: actions/checkout@v4
# Required ahead of time because of:
# https://github.com/asdf-vm/actions/issues/445
- name: Setup asdf
uses: asdf-vm/actions/setup@v3
- name: Cache asdf
id: cache-asdf
uses: actions/cache@v3
with:
path: |
/home/runner/.asdf
key: ${{ runner.os }}-asdf-${{ hashFiles('**/.tool-versions') }}
restore-keys: |
${{ runner.os }}-asdf-
- name: Install dependencies in .tool-versions
uses: asdf-vm/actions/install@v3
- name: Add Rust target
run: rustup target add ${{ matrix.target }}
- name: Cache Rust
uses: Swatinem/rust-cache@v2
- name: Build CLI
run: just build --verbose --locked --release --target ${{ matrix.target }}
- uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: code
path: /home/runner/work/odict
Binary file added node/node.darwin-arm64.node
Binary file not shown.
Binary file added node/node.node
Binary file not shown.
7 changes: 4 additions & 3 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"plugins": [
{
"type": "sentence-case"
}
},
"cargo-workspace"
],
"packages": {
".": {
"release-type": "simple",
"exclude-paths": ["js", "wasm", "python", "jvm"]
"release-type": "rust",
"exclude-paths": ["js", "node", "wasm", "python", "jvm"]
},
"js": {
"release-type": "node",
Expand Down

0 comments on commit c76c684

Please sign in to comment.