|
|
|
@ -40,9 +40,12 @@ jobs: |
|
|
|
|
- if: matrix.os == 'ubuntu-latest' |
|
|
|
|
run: sudo apt-get update && sudo apt-get install -y gcc-multilib |
|
|
|
|
- if: matrix.arch == '386' |
|
|
|
|
run: echo "::set-env name=RELEASE::hack-browser-data-${{ github.event.release.tag_name }}-${{ matrix.releaseos}}-32bit" |
|
|
|
|
run: echo "RELEASE=hack-browser-data-${{ github.event.release.tag_name}}-${{ matrix.releaseos}}-32bit" >> $GITHUB_ENV |
|
|
|
|
- if: matrix.arch == 'amd64' |
|
|
|
|
run: echo "::set-env name=RELEASE::hack-browser-data-${{ github.event.release.tag_name}}-${{ matrix.releaseos}}-64bit" |
|
|
|
|
run: echo "RELEASE=hack-browser-data-${{ github.event.release.tag_name}}-${{ matrix.releaseos}}-64bit" >> $GITHUB_ENV |
|
|
|
|
- if: matrix.os == 'windows-latest' |
|
|
|
|
shell: powershell |
|
|
|
|
run: echo "RELEASE=hack-browser-data-${{ github.event.release.tag_name}}-${{ matrix.releaseos}}-64bit" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append |
|
|
|
|
- uses: actions/checkout@v2 |
|
|
|
|
- name: Build ${{ matrix.goos }}/${{ matrix.arch }} |
|
|
|
|
run: go build -ldflags '-w -s' -o ${{ matrix.bin }} |
|
|
|
|