Skip to content

chore(deps): update dependency ubuntu to v24 #580

chore(deps): update dependency ubuntu to v24

chore(deps): update dependency ubuntu to v24 #580

Workflow file for this run

name: Rust
on:
push: ~
release:
types:
- published
env:
CARGO_TERM_COLOR: always
jobs:
checks:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-v1-${{ hashFiles('**/Cargo.lock') }}
- name: Install latest stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --verbose
deploy:
runs-on: ubuntu-24.04
if: ${{ github.event_name == 'release' }}
needs:
- checks
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-v1-${{ hashFiles('**/Cargo.lock') }}
- name: Install latest stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Log into crates.io
uses: actions-rs/cargo@v1
with:
command: login
args: ${{ secrets.CRATES_IO_TOKEN }}
- name: Publish to crates.io (freee)
uses: actions-rs/cargo@v1
with:
command: publish
args: --verbose --allow-dirty -p freee
- name: Publish to crates.io (freee-hr)
uses: actions-rs/cargo@v1
with:
command: publish
args: --verbose --allow-dirty -p freee-hr