Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
VicDeo committed Feb 9, 2024
1 parent 127451e commit 697d3b8
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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 }}

0 comments on commit 697d3b8

Please sign in to comment.