Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
wyozi committed May 3, 2023
1 parent ae240f6 commit 0535540
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on:
types:
- published


name: Build binaries

jobs:
Expand All @@ -29,6 +28,8 @@ jobs:
with:
command: build
args: --release --no-default-features --features "vtf bsp"
- name: List binaries
run: ls target/release
- name: "Get upload_url"
run: echo "::set-output name=upload_url::https://uploads.github.com/repos/$GITHUB_REPOSITORY/releases/$(jq --raw-output '.release.id' $GITHUB_EVENT_PATH)/assets{?name,label}"
id: release
Expand All @@ -38,7 +39,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_content_type: "application/octet-stream"
asset_name: bsp_${{ matrix.platform.os }}
asset_name: bsp_${{ matrix.platform.os }}${{ matrix.platform.bin_suffix }}
asset_path: "target/release/bsp${{ matrix.platform.bin_suffix }}"
upload_url: ${{ steps.release.outputs.upload_url }}
- name: "Upload gma"
Expand All @@ -47,7 +48,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_content_type: "application/octet-stream"
asset_name: gma_${{ matrix.platform.os }}
asset_name: gma_${{ matrix.platform.os }}${{ matrix.platform.bin_suffix }}
asset_path: "target/release/gma${{ matrix.platform.bin_suffix }}"
upload_url: ${{ steps.release.outputs.upload_url }}
- name: "Upload mdl"
Expand All @@ -56,7 +57,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_content_type: "application/octet-stream"
asset_name: mdl_${{ matrix.platform.os }}
asset_name: mdl_${{ matrix.platform.os }}${{ matrix.platform.bin_suffix }}
asset_path: "target/release/mdl${{ matrix.platform.bin_suffix }}"
upload_url: ${{ steps.release.outputs.upload_url }}
- name: "Upload vtf"
Expand All @@ -65,6 +66,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_content_type: "application/octet-stream"
asset_name: vtf_${{ matrix.platform.os }}
asset_name: vtf_${{ matrix.platform.os }}${{ matrix.platform.bin_suffix }}
asset_path: "target/release/vtf${{ matrix.platform.bin_suffix }}"
upload_url: ${{ steps.release.outputs.upload_url }}

0 comments on commit 0535540

Please sign in to comment.