Bump thiserror from 1.0.48 to 1.0.49 #269
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: floki-ci | |
on: | |
push: | |
tags: | |
# Full version | |
- "[0-9]+.[0-9]+.[0-9]+" | |
# Prerelease version | |
- "[0-9]+.[0-9]+.[0-9]+-*" | |
pull_request: | |
branches: | |
# Trigger on pull requests into main | |
- main | |
types: [ opened, synchronize ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.experimental }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-20.04 | |
- macos-latest | |
rust: | |
- stable | |
- beta | |
experimental: [false] | |
include: | |
- os: ubuntu-20.04 | |
rust: nightly | |
experimental: true | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install rust | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
- name: Run cargo clippy to pick up any errors | |
if: ${{ matrix.rust == 'stable' }} | |
run: cargo clippy -- -Dwarnings | |
- run: pip3 install -U tomlq | |
- run: "./build.sh" | |
env: | |
OS_NAME: ${{ matrix.os }} | |
- name: Archive artifacts | |
uses: actions/upload-artifact@v3 | |
if: ${{ matrix.rust == 'stable' }} | |
with: | |
name: stableartifacts | |
path: | | |
floki*.zip | |
floki*.tar.gz | |
publish: | |
runs-on: ubuntu-20.04 | |
needs: | |
- build | |
steps: | |
- uses: actions/checkout@v4 | |
- run: pip3 install -U tomlq | |
- name: Install rust | |
uses: dtolnay/rust-toolchain@stable | |
- name: Publish to crates.io on tags | |
if: startsWith(github.ref, 'refs/tags/') | |
run: cargo publish | |
env: | |
CARGO_REGISTRY_TOKEN: ${{ secrets.PUBLISH_SECRET }} | |
- name: Dry-run publish on non-tags | |
if: startsWith(github.ref, 'refs/tags/') != true | |
run: cargo publish --dry-run | |
env: | |
CARGO_REGISTRY_TOKEN: ${{ secrets.PUBLISH_SECRET }} | |
# After publishing, create a release | |
- name: Download archives | |
uses: actions/download-artifact@v3 | |
with: | |
name: stableartifacts | |
- name: Generate release.txt | |
run: "./changelog.sh" | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
body_path: release.txt | |
token: ${{ secrets.PAT_GITHUB }} | |
files: | | |
floki*.zip | |
floki*.tar.gz | |
# Announce the release | |
- run: "./announce.sh" | |
if: startsWith(github.ref, 'refs/tags/') | |
env: | |
ANNOUNCE_HOOK: ${{ secrets.ANNOUNCE_HOOK }} |