update windows install script #19
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: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22 | |
- name: Build application | |
if: matrix.os != 'windows-latest' | |
run: | | |
go build -o git-remove-branches main.go | |
- name: Build application | |
if: matrix.os == 'windows-latest' | |
run: | | |
go build -o git-remove-branches.exe main.go | |
- name: Archive production artifacts | |
if: matrix.os == 'ubuntu-latest' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: remove-branches-linux | |
path: git-remove-branches | |
- name: Archive production artifacts | |
if: matrix.os == 'macos-latest' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: remove-branches-macos | |
path: git-remove-branches | |
- name: Archive production artifacts | |
if: matrix.os == 'windows-latest' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: remove-branches-windows | |
path: git-remove-branches.exe |