Skip to content

Commit

Permalink
test again
Browse files Browse the repository at this point in the history
  • Loading branch information
SashaZezulinsky committed Oct 21, 2024
1 parent d0b0ef7 commit e00423e
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: go-core build
on: push
on: [push]
jobs:
build-windows:
runs-on: windows-latest
Expand All @@ -25,37 +25,32 @@ jobs:
mingw-w64-x86_64-toolchain
mingw-w64-x86_64-go
- name: Build Windows
if: ${{ matrix.platform.os == 'windows-latest' }}
shell: msys2 {0}
run: |
make gocore
make test
- name: Build & Test
if: ${{ matrix.platform.os != 'windows-latest' }}
run: |
make gocore
make test
- name: Upload Gocore
if: startsWith(github.ref, 'refs/tags/v')
uses: actions/upload-artifact@v2
with:
name: gocore-${{ matrix.platform.path }}
name: gocore-windows-x86_64
path: ./build/bin/gocore*

build-mac:
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- {os: macos-13, path: darwin-x86_64},
- {os: macos-latest, path: darwin-arm64},
runs-on: ${{ matrix.config.os }}
- {os: macos-13, path: darwin-x86_64}
- {os: macos-latest, path: darwin-arm64}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.23
- name: Build & Test
run: |
run: |
make gocore
make test
- name: Upload Gocore
Expand All @@ -64,6 +59,7 @@ jobs:
with:
name: gocore-${{ matrix.config.path }}
path: ./build/bin/gocore*

build-alpine:
strategy:
matrix:
Expand All @@ -85,7 +81,7 @@ jobs:
shell: alpine.sh --root {0}
run: apk add git cmake gcc g++ make go
- name: Build & Test
run: |
run: |
make gocore
make test
- name: Upload Gocore
Expand All @@ -94,6 +90,7 @@ jobs:
with:
name: gocore-linux-${{ matrix.config.arch }}
path: ./build/bin/gocore*

release:
if: startsWith(github.ref, 'refs/tags/v')
needs: [build-windows, build-mac, build-alpine]
Expand All @@ -116,6 +113,7 @@ jobs:
release_name: ${{ steps.version.outputs.tag }} gocore release
draft: false
prerelease: true

artifacts:
needs: release
runs-on: ubuntu-latest
Expand Down

0 comments on commit e00423e

Please sign in to comment.