Use Bevy 0.15 #133
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create tune-cli release assets | |
on: | |
release: | |
types: [created] | |
env: | |
CARGO_TERM_COLOR: always | |
RUSTFLAGS: "-D warnings" | |
jobs: | |
create-release-assets: | |
name: Create tune-cli ${{ matrix.target }} release | |
if: startsWith(github.event.release.tag_name, 'tune-cli') | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
target: | |
- x86_64-unknown-linux-gnu | |
- x86_64-pc-windows-msvc | |
- x86_64-apple-darwin | |
include: | |
- target: x86_64-unknown-linux-gnu | |
os: ubuntu-latest | |
- target: x86_64-pc-windows-msvc | |
os: windows-latest | |
- target: x86_64-apple-darwin | |
os: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Install Linux dependencies | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt update && sudo apt install libasound2-dev | |
- name: Install ${{ matrix.target }} target | |
run: rustup target add ${{ matrix.target }} | |
- name: Build tune-cli | |
run: cargo b --release -p tune-cli --target ${{ matrix.target }} | |
- name: Package tune-cli with zip | |
if: matrix.os != 'windows-latest' | |
run: zip --junk-paths tune-cli target/${{ matrix.target}}/release/tune tune-cli/README.md | |
- name: Package tune-cli with 7z | |
if: matrix.os == 'windows-latest' | |
run: 7z a tune-cli.zip ./target/${{ matrix.target}}/release/tune.exe ./tune-cli/README.md | |
- name: Upload tune-cli release asset | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: ./tune-cli.zip | |
asset_name: ${{ github.event.release.tag_name }}-${{ matrix.target }}.zip | |
asset_content_type: application/zip |