mirror of https://github.com/Rudi9719/mfprint.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
901 B
38 lines
901 B
name: Go |
|
on: [push] |
|
jobs: |
|
build: |
|
strategy: |
|
matrix: |
|
platform: [ubuntu-latest, macos-latest, windows-latest] |
|
name: Build |
|
runs-on: ${{ matrix.platform }} |
|
steps: |
|
|
|
- name: Set up Go 1.15 |
|
uses: actions/setup-go@v1 |
|
with: |
|
go-version: 1.15 |
|
id: go |
|
|
|
- name: Check out code into the Go module directory |
|
uses: actions/checkout@v1 |
|
|
|
- name: Get dependencies |
|
run: | |
|
go get -v -t -d ./... |
|
- name: Build |
|
run: go build |
|
- name: Upload Artifact |
|
if: matrix.platform != 'windows-latest' |
|
uses: actions/upload-artifact@v1.0.0 |
|
with: |
|
name: mfprint-${{ matrix.platform }} |
|
path: mfprint |
|
|
|
- name: Upload Artifact |
|
if: matrix.platform == 'windows-latest' |
|
uses: actions/upload-artifact@v1.0.0 |
|
with: |
|
name: mfprint-${{ matrix.platform }} |
|
path: mfprint.exe
|
|
|