From ad8f6f7f636a5512d1a51aa508cbf6f93712ba96 Mon Sep 17 00:00:00 2001 From: lcswillems Date: Thu, 30 May 2024 15:14:01 +0200 Subject: [PATCH] TMP --- .github/workflows/main.yml | 4 +- .../workflows/release-xsuite-fullsimulnet.yml | 77 ++++++++++--------- .../release-xsuite-lightsimulnet.yml | 2 +- 3 files changed, 43 insertions(+), 40 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fe6b54e6..d18c38a2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,7 +28,9 @@ jobs: uses: actions/setup-go@v5 with: go-version: 1.19 - cache-dependency-path: xsuite-lightsimulnet/src/go.sum + cache-dependency-path: | + xsuite-lightsimulnet/src/go.sum + xsuite-fullsimulnet/build-binary.mjs - name: Build xsuite-fullsimulnet run: pnpm build-xsuite-fullsimulnet diff --git a/.github/workflows/release-xsuite-fullsimulnet.yml b/.github/workflows/release-xsuite-fullsimulnet.yml index 4727664e..1b3e0345 100644 --- a/.github/workflows/release-xsuite-fullsimulnet.yml +++ b/.github/workflows/release-xsuite-fullsimulnet.yml @@ -1,7 +1,7 @@ name: Release xsuite-fullsimulnet on: - workflow_dispatch: + push: jobs: build: @@ -22,6 +22,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: 1.19 + cache-dependency-path: xsuite-fullsimulnet/build-binary.mjs - name: Build xsuite-fullsimulnet run: pnpm build-xsuite-fullsimulnet @@ -34,52 +35,52 @@ jobs: xsuite-fullsimulnet-darwin-amd64/bin/fsproxy xsuite-fullsimulnet-linux-amd64/bin/fsproxy - test: - needs: build + # test: + # needs: build - strategy: - matrix: - os: [macos-12, ubuntu-20.04] + # strategy: + # matrix: + # os: [macos-12, ubuntu-20.04] - runs-on: ${{ matrix.os }} + # runs-on: ${{ matrix.os }} - steps: - - name: Checkout - uses: actions/checkout@v4 + # steps: + # - name: Checkout + # uses: actions/checkout@v4 - - name: Download package - uses: actions/download-artifact@v4 - with: - pattern: package-* - merge-multiple: true + # - name: Download package + # uses: actions/download-artifact@v4 + # with: + # pattern: package-* + # merge-multiple: true - - name: Use Node.js & pnpm - uses: ./.github/actions/node-pnpm + # - name: Use Node.js & pnpm + # uses: ./.github/actions/node-pnpm - - name: Test xsuite-fullsimulnet - run: pnpm test-xsuite-fullsimulnet + # - name: Test xsuite-fullsimulnet + # run: pnpm test-xsuite-fullsimulnet - publish: - needs: test + # publish: + # needs: test - runs-on: ubuntu-20.04 + # runs-on: ubuntu-20.04 - steps: - - name: Checkout - uses: actions/checkout@v4 + # steps: + # - name: Checkout + # uses: actions/checkout@v4 - - name: Download package - uses: actions/download-artifact@v4 - with: - pattern: package-* - merge-multiple: true + # - name: Download package + # uses: actions/download-artifact@v4 + # with: + # pattern: package-* + # merge-multiple: true - - name: Use Node.js & pnpm - uses: ./.github/actions/node-pnpm - with: - node-registry-url: "https://registry.npmjs.org" + # - name: Use Node.js & pnpm + # uses: ./.github/actions/node-pnpm + # with: + # node-registry-url: "https://registry.npmjs.org" - - name: Publish xsuite-fullsimulnet packages to NPM - run: git config core.fileMode false && pnpm --filter "@xsuite/full-simulnet*" publish --publish-branch dev --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + # - name: Publish xsuite-fullsimulnet packages to NPM + # run: git config core.fileMode false && pnpm --filter "@xsuite/full-simulnet*" publish --publish-branch add-ci-fullsimulnet --access public --dry-run + # env: + # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/release-xsuite-lightsimulnet.yml b/.github/workflows/release-xsuite-lightsimulnet.yml index 6a26e0cf..5010b3aa 100644 --- a/.github/workflows/release-xsuite-lightsimulnet.yml +++ b/.github/workflows/release-xsuite-lightsimulnet.yml @@ -81,6 +81,6 @@ jobs: node-registry-url: "https://registry.npmjs.org" - name: Publish xsuite-lightsimulnet packages to NPM - run: git config core.fileMode false && pnpm --filter "@xsuite/light-simulnet*" publish --publish-branch dev --access public + run: git config core.fileMode false && pnpm --filter "@xsuite/light-simulnet*" publish --publish-branch add-ci-fullsimulnet --access public --dry-run env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}