wrapper-rs/.github/workflows/main.yml
2024-04-13 00:59:57 +08:00

39 lines
764 B
YAML

name: 顺手 build test 一下
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: 获取版本号
id: get_version
uses: sravinet/toml-select@v1.0.1
with:
file: ./Cargo.toml
field: "package.version"
- name: 上传
uses: actions/upload-artifact@v2
with:
name: wrapper-rs-b${{ github.run_number }}-${{ steps.get_version.outputs.value }}
path: ./target/release/call*