Build #6
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: Build | |
on: workflow_dispatch | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Build | |
run: cargo build --verbose --release | |
- name: Save file | |
run: mv target/release/densky densky | |
- name: Remove unused | |
run: | | |
rm -r example_server | |
rm -r packages | |
rm -r target | |
- name: Commit it | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "action: upload build" | |
branch: build-${{ matrix.os }} | |
push_options: '--force' | |
create_branch: true |