Skip to content

chore(deps): bump tokio from 1.37.0 to 1.38.1 #162

chore(deps): bump tokio from 1.37.0 to 1.38.1

chore(deps): bump tokio from 1.37.0 to 1.38.1 #162

Workflow file for this run

---
name: Build and Test
on:
push:
branches: [main]
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build-rust:
name: Build Rust binary
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Formatting
run: cargo fmt -- --check
- name: Clippy
run: cargo clippy --release
- name: Compile
run: cargo build --release
- name: Run tests
run: cargo test --release
build-arch-package:
name: Build ArchLinux Package
runs-on: ubuntu-latest
container:
image: archlinux:base-devel
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
path: repo
- name: Install dependencies
# Because we can't run makepkg as root, we also can't install
# packages using `makepkg`'s `-s` flag :(
run: pacman -Syu --noconfirm cargo git
- name: Create build directory
# http://allanmcrae.com/2015/01/replacing-makepkg-asroot/
run: |
useradd -m -d /home/build builder
cp repo/PKGBUILD /home/build/PKGBUILD
- name: Build package
run: sudo -u builder -- makepkg
working-directory: /home/build
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: package
path: "/home/build/*.pkg.tar.zst"