docs: rust.yml
This commit is contained in:
parent
6a7579e18b
commit
d2376e6d13
1 changed files with 44 additions and 26 deletions
24
.github/workflows/rust.yml
vendored
24
.github/workflows/rust.yml
vendored
|
@ -11,15 +11,30 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Build
|
- name: Build Linux x86
|
||||||
run: cargo build --release
|
run: cargo build --release
|
||||||
|
|
||||||
|
- uses: actions-rs/cargo@v1
|
||||||
|
name: Build Windows x86
|
||||||
|
with:
|
||||||
|
use-cross: true
|
||||||
|
command: build
|
||||||
|
args: --release --target x86_64-pc-windows-msvc
|
||||||
|
|
||||||
|
|
||||||
|
- uses: actions-rs/cargo@v1
|
||||||
|
name: Build Apple x86
|
||||||
|
with:
|
||||||
|
use-cross: true
|
||||||
|
command: build
|
||||||
|
args: --release --target x86_64-apple-darwin
|
||||||
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cargo test --verbose
|
run: cargo test --verbose
|
||||||
|
|
||||||
|
@ -34,7 +49,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ steps.vars.outputs.short_sha }}
|
tag_name: ${{ steps.vars.outputs.short_sha }}
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
files: target/release/rust-tcp-file-transfer
|
files: |
|
||||||
|
target/release/rust-tcp-file-transfer
|
||||||
|
target/*windows*/release/rust-tcp-file-transfer.exe
|
||||||
|
target/*apple*/release/rust-tcp-file-transfer
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue