From fbbad7fec8f8fc4209e169404fe22b71297b8b96 Mon Sep 17 00:00:00 2001 From: Miguel Ramos Date: Sat, 6 Jul 2024 10:56:45 +0100 Subject: [PATCH 1/3] feat: retrive changed packages --- Cargo.toml | 2 +- src/lib.rs | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index bd95ec8..8bfad60 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ crate-type = ["cdylib"] [dependencies] napi-derive = "2.16.8" napi = { version = "2.16.7", default-features = false, features = ["napi9", "serde-json", "tokio_rt"] } -workspace-node-tools = "0.6.0" +workspace-node-tools = "0.7.0" [build-dependencies] napi-build = "2" diff --git a/src/lib.rs b/src/lib.rs index d437bd7..42dbf77 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -22,6 +22,11 @@ pub fn monorepo_packages() -> Vec { Monorepo::get_packages() } +#[napi(js_name = "getMonorepoChangedPackages")] +pub fn monorepo_changed_packages(sha: Option) -> Vec { + Monorepo::get_changed_packages(sha) +} + #[napi(js_name = "executeFetchAll")] pub fn git_fetch_all(cwd: Option) -> bool { Git::fetch_all(cwd).is_ok() From cd3b81b02cd854cce2f1a4ae0f19277c8c923781 Mon Sep 17 00:00:00 2001 From: Miguel Ramos Date: Sat, 6 Jul 2024 14:31:45 +0100 Subject: [PATCH 2/3] chore: maintenance patch update --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 8bfad60..04b0cb0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ crate-type = ["cdylib"] [dependencies] napi-derive = "2.16.8" napi = { version = "2.16.7", default-features = false, features = ["napi9", "serde-json", "tokio_rt"] } -workspace-node-tools = "0.7.0" +workspace-node-tools = "0.7.1" [build-dependencies] napi-build = "2" From 15b1cdd29766e697d3c62183e761bda7d2e4c5cc Mon Sep 17 00:00:00 2001 From: Miguel Ramos Date: Mon, 8 Jul 2024 06:00:22 +0100 Subject: [PATCH 3/3] chore: disable freebsd --- .github/workflows/CI.yml | 96 ++++++++++++++++++++-------------------- package.json | 1 - 2 files changed, 48 insertions(+), 49 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 31423c2..ef68eae 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -129,53 +129,53 @@ jobs: name: bindings-${{ matrix.settings.target }} path: "*.wasm" if-no-files-found: error - build-freebsd: - runs-on: macos-13 - name: Build FreeBSD - steps: - - uses: actions/checkout@v4 - - name: Build - id: build - uses: cross-platform-actions/action@v0.24.0 - env: - DEBUG: napi:* - RUSTUP_IO_THREADS: 1 - with: - operating_system: freebsd - version: '13.2' - memory: 8G - cpu_count: 3 - environment_variables: 'DEBUG RUSTUP_IO_THREADS' - shell: bash - run: | - sudo pkg install -y -f curl node libnghttp2 npm - sudo npm install -g corepack - curl https://sh.rustup.rs -sSf --output rustup.sh - sh rustup.sh -y --profile minimal --default-toolchain beta - corepack prepare - corepack enable - source "$HOME/.cargo/env" - echo "~~~~ rustc --version ~~~~" - rustc --version - echo "~~~~ node -v ~~~~" - node -v - echo "~~~~ pnpm --version ~~~~" - pnpm --version - pwd - ls -lah - whoami - env - freebsd-version - pnpm install - pnpm build - rm -rf node_modules - rm -rf target - - name: Upload artifact - uses: actions/upload-artifact@v4 - with: - name: bindings-freebsd - path: ${{ env.APP_NAME }}.*.node - if-no-files-found: error + #build-freebsd: + # runs-on: macos-13 + # name: Build FreeBSD + # steps: + # - uses: actions/checkout@v4 + # - name: Build + # id: build + # uses: cross-platform-actions/action@v0.24.0 + # env: + # DEBUG: napi:* + # RUSTUP_IO_THREADS: 1 + # with: + # operating_system: freebsd + # version: '13.2' + # memory: 8G + # cpu_count: 3 + # environment_variables: 'DEBUG RUSTUP_IO_THREADS' + # shell: bash + # run: | + # sudo pkg install -y -f curl node libnghttp2 npm + # sudo npm install -g corepack + # curl https://sh.rustup.rs -sSf --output rustup.sh + # sh rustup.sh -y --profile minimal --default-toolchain beta + # corepack prepare + # corepack enable + # source "$HOME/.cargo/env" + # echo "~~~~ rustc --version ~~~~" + # rustc --version + # echo "~~~~ node -v ~~~~" + # node -v + # echo "~~~~ pnpm --version ~~~~" + # pnpm --version + # pwd + # ls -lah + # whoami + # env + # freebsd-version + # pnpm install + # pnpm build + # rm -rf node_modules + # rm -rf target + # - name: Upload artifact + # uses: actions/upload-artifact@v4 + # with: + # name: bindings-freebsd + # path: ${{ env.APP_NAME }}.*.node + # if-no-files-found: error test-macOS-windows-binding: name: Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }} needs: @@ -319,7 +319,7 @@ jobs: name: Publish runs-on: ubuntu-latest needs: - - build-freebsd + #- build-freebsd - test-macOS-windows-binding - test-linux-binding #- test-wasi diff --git a/package.json b/package.json index f243a9c..78288e8 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,6 @@ "aarch64-unknown-linux-gnu", "i686-pc-windows-msvc", "armv7-unknown-linux-gnueabihf", - "x86_64-unknown-freebsd", "aarch64-unknown-linux-musl", "aarch64-pc-windows-msvc" ]