Add GitHub CI Windows x64 build #1
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: ortlinde Go build | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
- name: Install system build dependencies | |
run: sudo apt-get install -y binutils-mingw-w64-x86-64 | |
- name: Generate Windows resource COFF | |
run: ./buildresource.sh | |
- name: Install Go dependencies | |
run: go get . | |
- name: Build for Windows x64 | |
run: go build -v -o ortlinde.exe | |
env: | |
GOOS: windows | |
GOARCH: amd64 | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ortlinde.exe | |
path: ortlinde.exe |