Skip to content

Commit

Permalink
chore: remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ClarkXia committed Nov 1, 2023
1 parent 59173e1 commit 6ae57ce
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 65 deletions.
86 changes: 43 additions & 43 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,56 +48,56 @@ jobs:
- 'Cargo.toml'
- 'rust-toolchain.toml'
# rust_check:
# name: Rust check
# needs: rust_changes
# if: ${{ needs.rust_changes.outputs.changed == 'true' }}
# runs-on: ${{ fromJSON(vars.LINUX_RUNNER_LABELS || '"ubuntu-latest"') }}
# steps:
# - uses: actions/checkout@v4
rust_check:
name: Rust check
needs: rust_changes
if: ${{ needs.rust_changes.outputs.changed == 'true' }}
runs-on: ${{ fromJSON(vars.LINUX_RUNNER_LABELS || '"ubuntu-latest"') }}
steps:
- uses: actions/checkout@v4

# - name: Pnpm Cache # Required by some tests
# uses: ./.github/actions/pnpm-cache
- name: Pnpm Cache # Required by some tests
uses: ./.github/actions/pnpm-cache

# - name: Clone Crates
# uses: ./.github/actions/clone-crates
- name: Clone Crates
uses: ./.github/actions/clone-crates

# - name: Install Rust Toolchain
# uses: ./.github/actions/rustup
# with:
# clippy: true
# fmt: true
# shared-key: check
- name: Install Rust Toolchain
uses: ./.github/actions/rustup
with:
clippy: true
fmt: true
shared-key: check

# - name: Run Cargo Check
# run: cargo check --workspace --all-targets # Not using --release because it uses too much cache, and is also slow.
- name: Run Cargo Check
run: cargo check --workspace --all-targets # Not using --release because it uses too much cache, and is also slow.

# rust_test:
# name: Rust test
# needs: rust_changes
# if: ${{ needs.rust_changes.outputs.changed == 'true' }}
# runs-on: ${{ fromJSON(vars.LINUX_RUNNER_LABELS || '"ubuntu-latest"') }}
# steps:
# - uses: actions/checkout@v4
rust_test:
name: Rust test
needs: rust_changes
if: ${{ needs.rust_changes.outputs.changed == 'true' }}
runs-on: ${{ fromJSON(vars.LINUX_RUNNER_LABELS || '"ubuntu-latest"') }}
steps:
- uses: actions/checkout@v4

# - name: Pnpm Cache # Required by some tests
# uses: ./.github/actions/pnpm-cache
- name: Pnpm Cache # Required by some tests
uses: ./.github/actions/pnpm-cache

# - name: Clone Crates
# uses: ./.github/actions/clone-crates
- name: Clone Crates
uses: ./.github/actions/clone-crates

# - name: Install Rust Toolchain
# uses: ./.github/actions/rustup
# with:
# save-cache: ${{ github.ref_name == 'main' }}
# shared-key: check
- name: Install Rust Toolchain
uses: ./.github/actions/rustup
with:
save-cache: ${{ github.ref_name == 'main' }}
shared-key: check

# # Compile test without debug info for reducing the CI cache size
# - name: Change profile.test
# shell: bash
# run: |
# echo '[profile.test]' >> Cargo.toml
# echo 'debug = false' >> Cargo.toml
# Compile test without debug info for reducing the CI cache size
- name: Change profile.test
shell: bash
run: |
echo '[profile.test]' >> Cargo.toml
echo 'debug = false' >> Cargo.toml
# - name: Run test
# run: pnpm test
- name: Run test
run: pnpm test
44 changes: 22 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ jobs:
fail-fast: false
matrix:
settings:
# - host: macos-latest
# target: x86_64-apple-darwin
# build: |
# cd crates/node_binding
# pnpm build
# strip -x *.node
# - host: windows-latest
# build: cd crates/node_binding && pnpm build
# target: x86_64-pc-windows-msvc
- host: macos-latest
target: x86_64-apple-darwin
build: |
cd crates/node_binding
pnpm build
strip -x *.node
- host: windows-latest
build: cd crates/node_binding && pnpm build
target: x86_64-pc-windows-msvc
- host: ubuntu-latest
target: x86_64-unknown-linux-gnu
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
Expand All @@ -43,19 +43,19 @@ jobs:
unset CC_x86_64_unknown_linux_gnu && unset CC &&
pnpm build --target x86_64-unknown-linux-gnu &&
strip *.node
# - host: ubuntu-latest
# target: x86_64-unknown-linux-musl
# docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
# build: cd crates/node_binding && set -e && pnpm build && strip *.node
# - host: macos-latest
# target: aarch64-apple-darwin
# build: |
# cd crates/node_binding
# pnpm build --target aarch64-apple-darwin
# strip -x *.node
# - host: windows-latest
# target: aarch64-pc-windows-msvc
# build: cd crates/node_binding && pnpm build --target aarch64-pc-windows-msvc
- host: ubuntu-latest
target: x86_64-unknown-linux-musl
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
build: cd crates/node_binding && set -e && pnpm build && strip *.node
- host: macos-latest
target: aarch64-apple-darwin
build: |
cd crates/node_binding
pnpm build --target aarch64-apple-darwin
strip -x *.node
- host: windows-latest
target: aarch64-pc-windows-msvc
build: cd crates/node_binding && pnpm build --target aarch64-pc-windows-msvc
name: stable - ${{ matrix.settings.target }} - node@18
runs-on: ${{ matrix.settings.host }}
steps:
Expand Down

0 comments on commit 6ae57ce

Please sign in to comment.