Skip to content

Commit

Permalink
CI: Merge release into build.
Browse files Browse the repository at this point in the history
  • Loading branch information
heiher committed May 12, 2024
1 parent 33be18c commit 14c622b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 61 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ name: "Build"

on:
push:
branches:
- '**'
pull_request:
release:
types:
- published

jobs:
linux:
Expand Down Expand Up @@ -49,9 +54,20 @@ jobs:
wget https://github.com/musl-cross/musl-cross/releases/download/20240317/${{ matrix.tool }}.tgz
sudo tar xf ${{ matrix.tool }}.tgz -C /opt/x-tools
make CROSS_PREFIX=/opt/x-tools/${{ matrix.tool }}/bin/${{ matrix.tool }}- CFLAGS=${{ matrix.env.CFLAGS }} ENABLE_STATIC=1 -j`nproc`
- name: Upload ${{ matrix.name }}
if: github.event_name == 'release'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: bin/hev-fsh
asset_name: fsh-linux-${{ matrix.name }}
asset_content_type: application/octet-stream
macos:
name: macOS
runs-on: macos-14
if: github.event_name != 'release'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
61 changes: 0 additions & 61 deletions .github/workflows/release.yaml

This file was deleted.

0 comments on commit 14c622b

Please sign in to comment.