update(workflows): add win, linux and macos artifacts

This commit is contained in:
MJSM 2023-02-22 11:21:47 -03:00
parent 3682adbdc5
commit e82a5db826
3 changed files with 99 additions and 24 deletions

38
.github/workflows/go-linux.yml vendored Normal file
View file

@ -0,0 +1,38 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go Linux
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Install dependencies
run: go get .
- name: Build
run: go build -v
- name: Test
run: go test -v
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.2
with:
name: tweego-linux
path: ./tweego
# The desired behavior if no files are found using the provided path.

38
.github/workflows/go-mac.yml vendored Normal file
View file

@ -0,0 +1,38 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go Linux
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Install dependencies
run: go get .
- name: Build
run: go build -v
- name: Test
run: go test -v
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.2
with:
name: tweego-macos
path: ./tweego
# The desired behavior if no files are found using the provided path.

View file

@ -1,7 +1,7 @@
# This workflow will build a golang project # This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go Ubuntu name: Go Windows
on: on:
push: push:
@ -11,9 +11,8 @@ on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -34,6 +33,6 @@ jobs:
- name: Upload a Build Artifact - name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.2 uses: actions/upload-artifact@v3.1.2
with: with:
name: Tweego name: tweego-windows
path: ./tweego path: ./tweego.exe
# The desired behavior if no files are found using the provided path. # The desired behavior if no files are found using the provided path.