Skip to content

cicd wip

cicd wip #3

Workflow file for this run

name: rust-build
on:
push:
branches: [ "master", "dev" ]
pull_request:
branches: [ "master", "dev" ]
release:
types: [published]
env:
CARGO_TERM_COLOR: always
# Make sure CI fails on all warnings, including Clippy lints
RUSTFLAGS: "-Dwarnings"
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
name: Rust Build
strategy:
matrix:
runson: [ubuntu-latest, ubuntu-24.04-arm]
runs-on: ${{ matrix.runson }}
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose --release --target-dir target/ci
- uses: actions/upload-artifact@v4
# if: ${{ github.event_name == 'release' }}
with:
name: ${{ github.repository }}-${{ matrix.runson }}
path: target/ci/release/rtabby-web-api