Skip to content

Commit

Permalink
fix: silent make -C
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas committed Apr 23, 2024
1 parent 8ad5a60 commit 79b4f2c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
type: string
jobs:
pkg:
name: Build {{ inputs.package }}
name: Build
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
strategy:
Expand Down Expand Up @@ -37,18 +37,18 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
- name: Init Hermit
run: ./bin/hermit env --raw >> $GITHUB_ENV
uses: cashapp/activate-hermit@v1
- name: Build
id: build
run: |
if [ -f /opt/rh/devtoolset-11/enable ]; then . /opt/rh/devtoolset-11/enable; fi
make -C pkgs/${{ inputs.package }}
# Output version for release action
echo "version=$(make -C pkgs/${{ inputs.package }} version)" >> $GITHUB_ENV
make -s -C pkgs/${{ inputs.package }} version
echo "VERSION=$(make -s -C pkgs/${{ inputs.package }} version)" >> $GITHUB_OUTPUT
- name: Upload Release
uses: ncipollo/release-action@v1
with:
tag: ${{ inputs.package }}-${{ steps.build.outputs.version }}
tag: ${{ inputs.package }}-${{ steps.build.outputs.VERSION }}
allowUpdates: true
artifacts: "pkgs/${{ inputs.package }}/${{ inputs.package }}-${{ steps.build.outputs.version }}-*.tar.xz"
artifacts: "pkgs/${{ inputs.package }}/${{ inputs.package }}-${{ steps.build.outputs.VERSION }}-*.tar.xz"
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 79b4f2c

Please sign in to comment.