Skip to content

Merge pull request #19 from Semnodime/patch-1 #38

Merge pull request #19 from Semnodime/patch-1

Merge pull request #19 from Semnodime/patch-1 #38

Workflow file for this run

name: Build & Test
on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go-version: ["1.20.x"]
steps:
- name: Setup Go environment
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Clean
run: make clean
- name: Build Default
run: make
- name: Clean
run: make clean
- name: Build Stripped
run: make stripped
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: deen-${{ matrix.os }}
path: bin/deen*
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go-version: ["1.20.x"]
steps:
- name: Setup Go environment
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Test
run: make test