Skip to content

Commit

Permalink
ci: remove multi run-os on gh-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dvgamerr committed May 29, 2023
1 parent 205dd6d commit 06fa2b5
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ on:

jobs:
build:
strategy:
matrix:
go-version: [1.19]
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# go-version: [1.19]
# os: [macos-latest, ubuntu-latest, windows-latest]
# runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
env:
CGO_ENABLED: "0"
steps:
Expand All @@ -27,17 +28,26 @@ jobs:
- name: Set up Golang
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
go-version: 1.19
# go-version: ${{ matrix.go-version }}

- name: Caches
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }}
key: ubuntu-golang-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-golang-
ubuntu-golang-
# key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }}
# restore-keys: |
# ${{ runner.os }}-golang-
- name: Build
if: contains(github.event_name, 'pull_request')
run: |
mkdir -p ./bin
go build -o ./bin/hoyolab .
- name: Releaser
if: success() && !contains(github.ref, 'main') && !contains(github.event_name, 'pull_request')
Expand Down

0 comments on commit 06fa2b5

Please sign in to comment.