From 697d3b8b531bea1aaff82731a936cc0eacf5b65c Mon Sep 17 00:00:00 2001 From: VicDeo Date: Fri, 9 Feb 2024 19:44:11 +0100 Subject: [PATCH] More fixes --- .github/workflows/build.yml | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c26f826..5b6a1a6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,12 +1,11 @@ -name: "Buid executable" - +name: "Build executable" on: workflow_dispatch: jobs: - build: + test: env: - GO_ARCH="amd64" + GO_VERSION="1.21.x" strategy: matrix: include: @@ -19,15 +18,23 @@ jobs: - os: macos-latest GOOS: darwin artifact: go-obfuscate.macos.amd64 - - runs-on: ${{ matrix.os }} - - - name: Build for ${{ matrix.os }} - run: GOOS={{ matrix.GOOS }} GOARCH=$GO_ARCH go build -o {{ matrix.artifact }} + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v4 + - name: Setup Go + uses: actions/setup-go@v4 + with: + go-version: '1.21.x' + + - name: Install dependencies + run: go get . + - name: Build for ${{ matrix.os }} + run: GOOS="{{ matrix.GOOS }}" GOARCH="amd64" go build -o {{ matrix.artifact }} - - name: Archive artifacts - uses: actions/upload-artifact@v2 - with: - name: go-obfuscate-artifacts - path: | - {{ matrix.artifact }} + - name: Archive artifacts + uses: actions/upload-artifact@v2 + with: + name: go-obfuscate-artifacts + path: | + {{ matrix.artifact }}