Skip to content

Commit

Permalink
proper tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bclement-ocp committed Jul 22, 2024
1 parent 16a5169 commit 5d113c3
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/build_static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ on:
branches:
- next
- main
- wip-release

jobs:
build-macos-static:
name: Build statically linked macOS binaries
# Only do this when explicitly requested since it takes a long time to
# build on macOS; no need to waste resources
if: ${{ github.event_name == 'workflow_dispatch' }}
if: ${{ github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/') }}
strategy:
matrix:
include:
Expand Down Expand Up @@ -55,6 +54,13 @@ jobs:
name: alt-ergo-${{ matrix.arch }}-macos
path: _destdir/opt/alt-ergo/bin/alt-ergo

- name: Release
uses: sventaro/upload-release-action@v2
if: startsWith(github.ref, 'refs/tags/')
with:
asset_name: alt-ergo-$tag-${{ matrix.arch }}-macos
file: _destdir/opt/alt-ergo/bin/alt-ergo

build-musl:
name: Build statically linked binary with musl

Expand Down Expand Up @@ -109,8 +115,8 @@ jobs:
path: _destdir/opt/alt-ergo/bin/alt-ergo

- name: Release
uses: softprops/action-gh-release@v2
uses: sventaro/upload-release-action@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
_destdir/opt/alt-ergo/bin/alt-ergo
asset_name: alt-ergo-$tag-x86_64-linux-musl
file: _destdir/opt/alt-ergo/bin/alt-ergo

0 comments on commit 5d113c3

Please sign in to comment.