Skip to content

Commit

Permalink
TMP
Browse files Browse the repository at this point in the history
  • Loading branch information
lcswillems committed May 30, 2024
1 parent 9e58ac7 commit ad8f6f7
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 40 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
77 changes: 39 additions & 38 deletions .github/workflows/release-xsuite-fullsimulnet.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Release xsuite-fullsimulnet

on:
workflow_dispatch:
push:

jobs:
build:
Expand All @@ -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
Expand All @@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/release-xsuite-lightsimulnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit ad8f6f7

Please sign in to comment.