From 6dbc76eecd41d1483ade458da4e97bf02a8e4b3f Mon Sep 17 00:00:00 2001 From: ysicing Date: Mon, 26 Aug 2024 10:32:47 +0800 Subject: [PATCH] * [ci] refactor build configuration for test workflows --- .github/workflows/test-win.yml | 53 ---------------------------------- .github/workflows/test.yml | 13 +++------ 2 files changed, 4 insertions(+), 62 deletions(-) delete mode 100644 .github/workflows/test-win.yml diff --git a/.github/workflows/test-win.yml b/.github/workflows/test-win.yml deleted file mode 100644 index 78dfe46c..00000000 --- a/.github/workflows/test-win.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: build on windows - -env: - # Common versions - GO_VERSION: '1.22' - TZ: Asia/Shanghai - -permissions: write-all - -on: - push: - branches: - - '*' - # paths: - # - '**.go' - # - 'go.mod' - # - '.github/workflows/*.yml' - # pull_request: - # branches: - # - "*" - # paths: - # - '**.go' - -jobs: - build: - name: "build" - timeout-minutes: 20 - runs-on: windows-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Setup Go - uses: actions/setup-go@v5 - with: - go-version: ${{ env.GO_VERSION }} - check-latest: true - - uses: actions/setup-node@v4 - with: - node-version: '20' - - name: install global dependencies - run: | - npm install -g yarn - npm install -g electron-forge - - name: install tools - run: | - echo "install tools" - go install github.com/kevinburke/go-bindata/v4/...@latest - - name: Release - run: | - cd ui && yarn install && cd .. - cd client && yarn install && cd .. - make compile_ui - make default diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bb30476d..cd85492a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,15 +11,6 @@ on: push: branches: - '*' - # paths: - # - '**.go' - # - 'go.mod' - # - '.github/workflows/*.yml' - # pull_request: - # branches: - # - "*" - # paths: - # - '**.go' jobs: build: @@ -49,5 +40,9 @@ jobs: run: | cd ui && yarn install && cd .. cd client && yarn install && cd .. + make prepare make compile_ui + - name: Release + run: | make default +