Skip to content

Commit

Permalink
test workflow matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Apr 24, 2022
1 parent 1cb3747 commit 8515139
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,46 +9,46 @@ jobs:

build:
runs-on: ${{ matrix.os }}
startegy:
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
go-version: [1.18]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3

- name: Set up Golang ${{ matrix.go-version }}
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}

- name: Install winres for windows
if: matrix.os == 'windows-latest'
run: go install github.com/tc-hib/go-winres@latest

- name: Build for windows
if: matrix.os == 'windows-latest'
run: |
go-winres make
go build -ldflags="-H windowsgui -s -w" -o BurpSuiteProLoader-windows.exe
dir
- name: Build for macos
if: matrix.os == 'macos-latest'
run: |
go build -ldflags="-s -w" -o BurpSuiteProLoader-darwin
ls -la
- name: Build for ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
go build -ldflags="-s -w" -o BurpSuiteProLoader-linux
ls -la
- name: Set up Golang ${{ matrix.go-version }}
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Install winres for windows
if: matrix.os == 'windows-latest'
run: go install github.com/tc-hib/go-winres@latest
- name: Build for windows
if: matrix.os == 'windows-latest'
run: |
go-winres make
go build -ldflags="-H windowsgui -s -w" -o BurpSuiteProLoader-windows.exe
dir
- name: Build for macos
if: matrix.os == 'macos-latest'
run: |
go build -ldflags="-s -w" -o BurpSuiteProLoader-darwin
ls -la
- name: Build for ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
go build -ldflags="-s -w" -o BurpSuiteProLoader-linux
ls -la
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
BurpSuiteProLoader-windows.exe
BurpSuiteProLoader-darwin
BurpSuiteProLoader-linux
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
BurpSuiteProLoader-windows.exe
BurpSuiteProLoader-darwin
BurpSuiteProLoader-linux

0 comments on commit 8515139

Please sign in to comment.