Skip to content

Commit

Permalink
Build workflow is working and cross-compile now (#9)
Browse files Browse the repository at this point in the history
Build workflow is working
  • Loading branch information
VicDeo authored Feb 9, 2024
1 parent 717be3d commit 8ceed66
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,21 @@ on:
workflow_dispatch:

jobs:
call-workflow-passing-data:
test:
uses: VicDeo/go-obfuscate/.github/workflows/test.yml@master

build:
env:
GO_VERSION="1.21.x"
needs: test
strategy:
matrix:
include:
- os: ubuntu-latest
GOOS: linux
- GOOS: linux
artifact: go-obfuscate.linux.amd64
- os: windows-latest
GOOS: windows
- GOOS: windows
artifact: go-obfuscate.exe
- os: macos-latest
GOOS: darwin
- GOOS: darwin
artifact: go-obfuscate.macos.amd64
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
Expand All @@ -33,11 +29,11 @@ jobs:
- name: Install dependencies
run: go get .
- name: Build for ${{ matrix.os }}
run: GOOS="{{ matrix.GOOS }}" GOARCH="amd64" go build -o {{ matrix.artifact }}
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 }}
${{ matrix.artifact }}

0 comments on commit 8ceed66

Please sign in to comment.