Skip to content

Commit

Permalink
fixed CI builds
Browse files Browse the repository at this point in the history
  • Loading branch information
rifsxd committed Oct 4, 2024
1 parent daba3f2 commit 5ec8a0e
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,21 @@ name: Go Build
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
workflow_dispatch:
- master

jobs:
build-linux:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: '1.20' # Specify the Go version you want to use

Expand All @@ -32,7 +31,7 @@ jobs:
run: go test ./... # Run your tests

- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: dvpl_lz4-linux
path: dvpl_lz4-linux # Path to your built executable
Expand All @@ -42,10 +41,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: '1.20' # Specify the Go version you want to use

Expand All @@ -59,7 +58,7 @@ jobs:
run: go test ./... # Run your tests

- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: dvpl_lz4-windows
path: dvpl_lz4-windows.exe # Path to your built executable

0 comments on commit 5ec8a0e

Please sign in to comment.