Skip to content

Commit

Permalink
Update build-and-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
angelhvargas authored May 21, 2024
1 parent 43eb84c commit 497c9b3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf
mkdir -p ./build
if [ "${{ matrix.arch }}" == "arm64" ]; then
CC=aarch64-linux-gnu-gcc go build -o redfishcli-${{ matrix.arch }}
else
Expand All @@ -49,7 +50,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: redfishcli-${{ matrix.arch }}
path: redfishcli-${{ matrix.arch }}
path: ./build/redfishcli-${{ matrix.arch }}
if-no-files-found: error

release:
Expand Down Expand Up @@ -83,10 +84,12 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: redfishcli-amd64
path: ./release
path: ${{github.event.release.tag_name}}
overwrite: true

- name: Upload Release Asset for ARM64
uses: actions/upload-artifact@v4
with:
name: redfishcli-arm64
path: ./release
path: ${{github.event.release.tag_name}}
overwrite: true

0 comments on commit 497c9b3

Please sign in to comment.