|
9 | 9 |
|
10 | 10 | build: |
11 | 11 | runs-on: ${{ matrix.os }} |
12 | | - startegy: |
| 12 | + strategy: |
13 | 13 | matrix: |
14 | 14 | os: [windows-latest, macos-latest, ubuntu-latest] |
15 | 15 | go-version: [1.18] |
16 | 16 | steps: |
17 | | - - uses: actions/checkout@v3 |
| 17 | + - uses: actions/checkout@v3 |
18 | 18 |
|
19 | | - - name: Set up Golang ${{ matrix.go-version }} |
20 | | - uses: actions/setup-go@v3 |
21 | | - with: |
22 | | - go-version: ${{ matrix.go-version }} |
23 | | - |
24 | | - - name: Install winres for windows |
25 | | - if: matrix.os == 'windows-latest' |
26 | | - run: go install github.com/tc-hib/go-winres@latest |
27 | | - |
28 | | - - name: Build for windows |
29 | | - if: matrix.os == 'windows-latest' |
30 | | - run: | |
31 | | - go-winres make |
32 | | - go build -ldflags="-H windowsgui -s -w" -o BurpSuiteProLoader-windows.exe |
33 | | - dir |
34 | | - |
35 | | - - name: Build for macos |
36 | | - if: matrix.os == 'macos-latest' |
37 | | - run: | |
38 | | - go build -ldflags="-s -w" -o BurpSuiteProLoader-darwin |
39 | | - ls -la |
40 | | - |
41 | | - - name: Build for ubuntu |
42 | | - if: matrix.os == 'ubuntu-latest' |
43 | | - run: | |
44 | | - go build -ldflags="-s -w" -o BurpSuiteProLoader-linux |
45 | | - ls -la |
| 19 | + - name: Set up Golang ${{ matrix.go-version }} |
| 20 | + uses: actions/setup-go@v3 |
| 21 | + with: |
| 22 | + go-version: ${{ matrix.go-version }} |
| 23 | + |
| 24 | + - name: Install winres for windows |
| 25 | + if: matrix.os == 'windows-latest' |
| 26 | + run: go install github.com/tc-hib/go-winres@latest |
| 27 | + |
| 28 | + - name: Build for windows |
| 29 | + if: matrix.os == 'windows-latest' |
| 30 | + run: | |
| 31 | + go-winres make |
| 32 | + go build -ldflags="-H windowsgui -s -w" -o BurpSuiteProLoader-windows.exe |
| 33 | + dir |
| 34 | + |
| 35 | + - name: Build for macos |
| 36 | + if: matrix.os == 'macos-latest' |
| 37 | + run: | |
| 38 | + go build -ldflags="-s -w" -o BurpSuiteProLoader-darwin |
| 39 | + ls -la |
| 40 | + |
| 41 | + - name: Build for ubuntu |
| 42 | + if: matrix.os == 'ubuntu-latest' |
| 43 | + run: | |
| 44 | + go build -ldflags="-s -w" -o BurpSuiteProLoader-linux |
| 45 | + ls -la |
46 | 46 |
|
47 | | - - name: Release |
48 | | - uses: softprops/action-gh-release@v1 |
49 | | - if: startsWith(github.ref, 'refs/tags/') |
50 | | - with: |
51 | | - files: | |
52 | | - BurpSuiteProLoader-windows.exe |
53 | | - BurpSuiteProLoader-darwin |
54 | | - BurpSuiteProLoader-linux |
| 47 | + - name: Release |
| 48 | + uses: softprops/action-gh-release@v1 |
| 49 | + if: startsWith(github.ref, 'refs/tags/') |
| 50 | + with: |
| 51 | + files: | |
| 52 | + BurpSuiteProLoader-windows.exe |
| 53 | + BurpSuiteProLoader-darwin |
| 54 | + BurpSuiteProLoader-linux |
0 commit comments