i think i might be stupid? #111
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go | |
on: | |
push: | |
branches: [ main, dev ] | |
pull_request: | |
branches: [ main, dev ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.17 | |
- name: Build - Windows 64bit | |
run: GOOS=windows GOARCH=amd64 go build -trimpath -ldflags "-s -w" -o "discordcompressor-win64.exe" -v | |
- name: Build - Windows 32bit | |
run: GOOS=windows GOARCH=386 go build -trimpath -ldflags "-s -w" -o "discordcompressor-win32.exe" -v | |
- name: Build - Linux 64bit | |
run: GOOS=linux GOARCH=amd64 go build -trimpath -ldflags "-s -w" -o "discordcompressor-linux64" -v | |
- name: Build - Linux 32bit | |
run: GOOS=linux GOARCH=386 go build -trimpath -ldflags "-s -w" -o "discordcompressor-linux32" -v | |
- name: Upload | |
uses: actions/upload-artifact@master | |
with: | |
name: Windows 64bit | |
path: discordcompressor-win64.exe | |
- name: Upload | |
uses: actions/upload-artifact@master | |
with: | |
name: Windows 32bit | |
path: discordcompressor-win32.exe | |
- name: Upload | |
uses: actions/upload-artifact@master | |
with: | |
name: Linux 64bit | |
path: discordcompressor-linux64 | |
- name: Upload | |
uses: actions/upload-artifact@master | |
with: | |
name: Linux 32bit | |
path: discordcompressor-linux32 |