attempt to fix github-actions
This commit is contained in:
parent
b8f5a83af5
commit
7dc768776e
1 changed files with 22 additions and 4 deletions
26
.github/workflows/rust.yml
vendored
26
.github/workflows/rust.yml
vendored
|
@ -1,10 +1,8 @@
|
|||
name: Rust
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
release:
|
||||
types: [ "created" ]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
@ -18,6 +16,12 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
- name: Build
|
||||
run: cargo build --verbose --release
|
||||
- name: Publish
|
||||
uses: skx/github-actions-publish-binaries@master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
args: 'target/release/qft'
|
||||
|
||||
build-mac:
|
||||
runs-on: macos-11
|
||||
|
@ -26,6 +30,14 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
- name: Build
|
||||
run: cargo build --verbose --release
|
||||
- name: Build
|
||||
run: mv target/release/qft target/release/qft-mac
|
||||
- name: Publish
|
||||
uses: skx/github-actions-publish-binaries@master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
args: 'target/release/qft-mac'
|
||||
|
||||
build-win:
|
||||
runs-on: windows-latest
|
||||
|
@ -34,3 +46,9 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
- name: Build
|
||||
run: cargo build --verbose --release
|
||||
- name: Publish
|
||||
uses: skx/github-actions-publish-binaries@master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
args: 'target/release/qft.exe'
|
||||
|
|
Loading…
Add table
Reference in a new issue