From 4026343092eef5cb8f9b97ce88bf918e77c35108 Mon Sep 17 00:00:00 2001 From: Mat Date: Mon, 4 Apr 2022 10:35:00 -0700 Subject: [PATCH 1/2] Pin docker images for rust build CI actions --- .../deploy-npm-ironfish-rust-nodejs.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy-npm-ironfish-rust-nodejs.yml b/.github/workflows/deploy-npm-ironfish-rust-nodejs.yml index c8344c2ff7..f3a05fe428 100644 --- a/.github/workflows/deploy-npm-ironfish-rust-nodejs.yml +++ b/.github/workflows/deploy-npm-ironfish-rust-nodejs.yml @@ -29,13 +29,13 @@ jobs: - host: ubuntu-latest target: x86_64-unknown-linux-gnu architecture: x64 - docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian + docker: ghcr.io/napi-rs/napi-rs/nodejs-rust@sha256:c9735923823026d494a3e544818911e187d0d014e8ac01bdf3bbd62efe5ee0d2 build: cd ironfish-rust-nodejs && yarn build && strip *.node - host: ubuntu-latest target: x86_64-unknown-linux-musl architecture: x64 - docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine + docker: ghcr.io/napi-rs/napi-rs/nodejs-rust@sha256:749e81d2fa2fdcda2732e284069fdd8469702da007eb6088df426cdb813b3ecc build: cd ironfish-rust-nodejs && yarn build && strip *.node - host: macos-latest @@ -54,16 +54,18 @@ jobs: build: | cd ironfish-rust-nodejs yarn build --target=aarch64-unknown-linux-gnu + ls aarch64-linux-gnu-strip *.node - host: ubuntu-latest target: aarch64-unknown-linux-musl architecture: x64 - docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine + docker: ghcr.io/napi-rs/napi-rs/nodejs-rust@sha256:749e81d2fa2fdcda2732e284069fdd8469702da007eb6088df426cdb813b3ecc build: | rustup target add aarch64-unknown-linux-musl cd ironfish-rust-nodejs yarn build --target=aarch64-unknown-linux-musl + ls aarch64-linux-musl-strip *.node name: Build ${{ matrix.settings.target }} @@ -93,7 +95,7 @@ jobs: shell: bash - name: Install dependencies - run: npm install + run: npm install --no-workspaces working-directory: ./ironfish-rust-nodejs - name: Build in Docker @@ -139,7 +141,7 @@ jobs: - host: ubuntu-latest target: aarch64-unknown-linux-gnu - docker: ghcr.io/napi-rs/napi-rs/nodejs:aarch64-16 + docker: ghcr.io/napi-rs/napi-rs/nodejs@sha256:b145122cb5e68d8133e0eef0395af490eab781a648c637e43522e7fa33e63970 - host: ubuntu-latest target: aarch64-unknown-linux-musl @@ -168,7 +170,7 @@ jobs: path: ./ironfish-rust-nodejs - name: Install dependencies - run: npm install + run: npm install --no-workspaces working-directory: ./ironfish-rust-nodejs - name: Run tests in Docker @@ -206,7 +208,7 @@ jobs: cache: yarn - name: Install dependencies - run: npm install + run: npm install --no-workspaces - name: Download all artifacts uses: actions/download-artifact@v2 From 24de4324a316e98f9a940019e4c4b3cf92a287b5 Mon Sep 17 00:00:00 2001 From: Mat Date: Mon, 4 Apr 2022 13:29:09 -0700 Subject: [PATCH 2/2] Remove debug ls --- .github/workflows/deploy-npm-ironfish-rust-nodejs.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy-npm-ironfish-rust-nodejs.yml b/.github/workflows/deploy-npm-ironfish-rust-nodejs.yml index f3a05fe428..37ec039ab9 100644 --- a/.github/workflows/deploy-npm-ironfish-rust-nodejs.yml +++ b/.github/workflows/deploy-npm-ironfish-rust-nodejs.yml @@ -54,7 +54,6 @@ jobs: build: | cd ironfish-rust-nodejs yarn build --target=aarch64-unknown-linux-gnu - ls aarch64-linux-gnu-strip *.node - host: ubuntu-latest @@ -65,7 +64,6 @@ jobs: rustup target add aarch64-unknown-linux-musl cd ironfish-rust-nodejs yarn build --target=aarch64-unknown-linux-musl - ls aarch64-linux-musl-strip *.node name: Build ${{ matrix.settings.target }}