Skip to content

Commit

Permalink
CI changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lablans committed Apr 4, 2024
1 parent 264b82c commit 1c307cd
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 75 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/docker.yml

This file was deleted.

45 changes: 19 additions & 26 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,26 @@
name: Rust
name: Build with rust and docker

on:
push:
branches: [main]
workflow_dispatch:
pull_request:

env:
CARGO_TERM_COLOR: always
PROFILE: release
schedule:
# Fetch new base image updates every night at 1am
- cron: '0 1 * * *'

jobs:
pre-check:
name: Security, License Check
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- uses: EmbarkStudios/cargo-deny-action@v1

rust:
name: Build (Rust)
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: |
cargo check --all-features
cargo test --all-features
cargo build --release
build-with-samply:
uses: samply/github-workflows/.github/workflows/rust.yml@main
with:
# For information on these variables, please refer to https://github.com/samply/github-workflows/tree/main/.github/workflows/rust.yml
# Docker Hub name will be {image-prefix}{component}
image-prefix: "samply/"
components: '[ "rustyspot" ]'
architectures: '[ "amd64" ]'
#profile: debug
test-via-script: false
#features: '[ "", "sockets" ]'
push-to: ${{ (github.ref_protected == true || github.event_name == 'workflow_dispatch') && 'dockerhub' || 'none' }}
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
11 changes: 0 additions & 11 deletions .github/workflows/rust_security.yml

This file was deleted.

0 comments on commit 1c307cd

Please sign in to comment.