Skip to content

Commit

Permalink
Fix multi-os build
Browse files Browse the repository at this point in the history
  • Loading branch information
wyozi authored May 3, 2023
1 parent db418ad commit ae240f6
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@ name: Build binaries
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
platform:
- os: ubuntu-latest
bin_suffix: ""
- os: macos-latest
bin_suffix: ""
- os: windows-latest
bin_suffix: ".exe"
runs-on: ${{ matrix.platform.os }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
Expand All @@ -32,33 +38,33 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_content_type: "application/octet-stream"
asset_name: bsp_${{ matrix.os }}
asset_path: "target/release/bsp"
asset_name: bsp_${{ matrix.platform.os }}
asset_path: "target/release/bsp${{ matrix.platform.bin_suffix }}"
upload_url: ${{ steps.release.outputs.upload_url }}
- name: "Upload gma"
uses: "actions/upload-release-asset@v1"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_content_type: "application/octet-stream"
asset_name: gma_${{ matrix.os }}
asset_path: "target/release/gma"
asset_name: gma_${{ matrix.platform.os }}
asset_path: "target/release/gma${{ matrix.platform.bin_suffix }}"
upload_url: ${{ steps.release.outputs.upload_url }}
- name: "Upload mdl"
uses: "actions/upload-release-asset@v1"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_content_type: "application/octet-stream"
asset_name: mdl_${{ matrix.os }}
asset_path: "target/release/mdl"
asset_name: mdl_${{ matrix.platform.os }}
asset_path: "target/release/mdl${{ matrix.platform.bin_suffix }}"
upload_url: ${{ steps.release.outputs.upload_url }}
- name: "Upload vtf"
uses: "actions/upload-release-asset@v1"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_content_type: "application/octet-stream"
asset_name: vtf_${{ matrix.os }}
asset_path: "target/release/vtf"
upload_url: ${{ steps.release.outputs.upload_url }}
asset_name: vtf_${{ matrix.platform.os }}
asset_path: "target/release/vtf${{ matrix.platform.bin_suffix }}"
upload_url: ${{ steps.release.outputs.upload_url }}

0 comments on commit ae240f6

Please sign in to comment.