Some checks failed
Cargo Build & Test / Rust project - latest (stable) (push) Failing after 10s
40 lines
962 B
YAML
40 lines
962 B
YAML
name: Cargo Build & Test
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
build_and_test:
|
|
name: Rust project - latest
|
|
runs-on: rustup-all-musl
|
|
strategy:
|
|
matrix:
|
|
toolchain:
|
|
- stable
|
|
# - beta
|
|
# - nightly
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
|
|
- run: cargo build --verbose
|
|
- run: cargo test --verbose
|
|
- run: cargo build --release --target=x86_64-unknown-linux-musl
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: gitea.loadingm.xyz
|
|
username: "the10thwiz"
|
|
password: ${{ secrets.PACKAGE_TOKEN }}
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
push: true
|
|
file: 'Dockerfile'
|
|
tags: gitea.loadingm.xyz/the10thwiz/gpodder:latest
|
|
|
|
|