Skip to content

Commit

Permalink
Format CI & add debug options for the build in rust
Browse files Browse the repository at this point in the history
  • Loading branch information
1Git2Clone committed Dec 13, 2024
1 parent bf7e0d1 commit 92b798c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,15 @@ name: Docker Image CI

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

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
17 changes: 9 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,22 @@ name: Rust

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

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- uses: actions/checkout@v3
- name: Build
run: RUST_BACKTRACE=full cargo build --verbose --all-features
- name: Build Release
run: RUST_BACKTRACE=full cargo build --verbose --all-features --release
- name: Run tests
run: RUST_BACKTRACE=full cargo test --verbose --all-features -- --nocapture

0 comments on commit 92b798c

Please sign in to comment.