From f6b1adccc6e50dfd237cd276c8bac9437b5daddf Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Sun, 21 May 2023 23:56:17 +0800 Subject: [PATCH] ci: --- .gitea/workflows/built-bin.yaml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/built-bin.yaml b/.gitea/workflows/built-bin.yaml index 72d6224..4a197dc 100644 --- a/.gitea/workflows/built-bin.yaml +++ b/.gitea/workflows/built-bin.yaml @@ -8,11 +8,6 @@ jobs: - name: Check out repository code uses: actions/checkout@v3 - - name: Set up Go Environment - uses: actions/setup-go@v3 - with: - go-version: '1.20' - - name: Get Dependencies Index Hash uses: https://github.com/KEINOS/gh-action-hash-for-cache@main id: hash-dependencies-index @@ -37,7 +32,8 @@ jobs: toolchain: stable override: true - - id: tag + - name: Get Commit Tag + id: tag uses: https://github.com/Maxyme/get-release-or-tag@v2 - name: Build @@ -58,7 +54,8 @@ jobs: IMAGE_NAME: ${{ github.repository }} steps: - - id: tag + - name: Get Commit Tag + id: tag uses: https://github.com/Maxyme/get-release-or-tag@v2 - id: restore-executable-binary @@ -68,9 +65,18 @@ jobs: path: ./network-monitor key: ${{ runner.os }}-release-${{ steps.tag.outputs.tag }} - if: ${{ steps.restore-executable-binary.outputs.cache-hit != 'true' }} - name: List the state of node modules + name: Check if binary exists run: echo "missing program" + - + # Add support for more platforms with QEMU (optional) + # https://github.com/docker/setup-qemu-action + name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Log in to the Container registry uses: https://github.com/docker/login-action@v2 with: