Skip to content

Commit

Permalink
actions use ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
ZelvaMan committed Sep 24, 2023
1 parent dccd7a4 commit 05a80bd
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@ permissions:
jobs:
publish:
name: Publish for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
matrix:
include:
# - os: ubuntu-latest
# artifact_name: db-gen
# asset_name: db-gen-linux-amd64
- os: windows-latest
binary_name: win-db-gen.exe
- goarch: amd64
goos: linux
binary: db-gen-win
- goarch: amd64
goos: windows
binary: db-gen-win.exe

steps:
- uses: actions/checkout@v3
Expand All @@ -27,12 +28,12 @@ jobs:
with:
go-version: '1.21'
- name: Build
run: go build -x -v -o ${{ matrix.binary_name }} .
run: env GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -v -o ${{ matrix.binary }} .
- name: LS
run: ls
- name: Upload to release
uses: JasonEtco/upload-to-release@master
with:
args: ${{ matrix.binary_name }}
args: ${{ matrix.binary }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 05a80bd

Please sign in to comment.