Skip to content

Commit

Permalink
SUSE: build binary Linux executables only
Browse files Browse the repository at this point in the history
Signed-off-by: Silvio Moioli <[email protected]>
  • Loading branch information
moio committed Apr 26, 2024
1 parent f18209a commit ae52e07
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ jobs:
retention-days: 7

build-docker:
if: false # Disabled for SUSE builds
runs-on: ubuntu-latest
needs: [configure]
env:
Expand Down Expand Up @@ -214,6 +215,7 @@ jobs:
fi
package-windows:
if: false # Disabled for SUSE builds
runs-on: windows-2019
defaults:
run:
Expand Down Expand Up @@ -308,7 +310,7 @@ jobs:

publish-github:
runs-on: ubuntu-latest
needs: [configure, build, package-windows]
needs: [configure, build]
if: ${{ startsWith(github.ref, 'refs/tags/v') && github.event_name != 'workflow_dispatch' }}
env:
VERSION: ${{ needs.configure.outputs.k6_version }}
Expand All @@ -321,6 +323,7 @@ jobs:
name: binaries
path: dist
- name: Download Windows binaries
if: false # Disabled for SUSE builds
uses: actions/download-artifact@v4
with:
name: binaries-windows
Expand All @@ -343,12 +346,12 @@ jobs:
for asset in ./dist/*; do
assets+=("$asset")
done
gh release create "$VERSION" "${assets[@]}" --target "$GITHUB_SHA" -F "./release notes/${VERSION}.md"
gh release create "$VERSION" "${assets[@]}" --target "$GITHUB_SHA" -F "./release notes/${VERSION%-suse-*}.md"
publish-packages:
runs-on: ubuntu-latest
needs: [configure, build, package-windows]
if: ${{ startsWith(github.ref, 'refs/tags/v') && github.event_name != 'workflow_dispatch' }}
if: false # Disabled for SUSE builds
env:
VERSION: ${{ needs.configure.outputs.k6_version }}
steps:
Expand All @@ -360,6 +363,7 @@ jobs:
name: binaries
path: dist
- name: Download Windows binaries
if: false # Disabled for SUSE builds
uses: actions/download-artifact@v4
with:
name: binaries-windows
Expand Down

0 comments on commit ae52e07

Please sign in to comment.