Update axum-test requirement from 10.1.0 to 12.1.0 #10
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: Release | |
on: | |
push: | |
tags: | |
- 'v*' # Only trigger for version tags like "v1.0.0" | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build-macos: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build | |
run: cargo build --release --verbose | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build | |
run: cargo build --release --verbose | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Build | |
run: cargo build --release --verbose | |
upload-assets: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: taiki-e/upload-rust-binary-action@v1 | |
with: | |
# (required) Comma-separated list of binary names (non-extension portion of filename) to build and upload. | |
# Note that glob pattern is not supported yet. | |
bin: laerning-tool | |
archive: $bin-$tag-$target | |
include: data,laerning-module.xsd,README.adoc,LICENSE | |
# (optional) On which platform to distribute the `.tar.gz` file. | |
# [default value: unix] | |
# [possible values: all, unix, windows, none] | |
tar: all | |
# (optional) On which platform to distribute the `.zip` file. | |
# [default value: windows] | |
# [possible values: all, unix, windows, none] | |
zip: all | |
# (required) GitHub token for uploading assets to GitHub Releases. | |
# Not using GITHUB_TOKEN because that didn't have enough permissions? | |
token: ${{ secrets.RELEASE_TOKEN }} |