Skip to content

Commit

Permalink
add: switch ci/cd to self-hosted
Browse files Browse the repository at this point in the history
  • Loading branch information
djhunter67 committed Mar 19, 2024
1 parent 734f919 commit b5b1712
Show file tree
Hide file tree
Showing 5 changed files with 109 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto_assign_issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
types: [opened]
jobs:
run:
runs-on: ubuntu-latest
runs-on: self-hosted
permissions:
issues: write
pull-requests: write
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/format_code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ env:

jobs:
build:
runs-on: ubuntu-latest
runs-on: self-hosted

strategy:
matrix:
Expand All @@ -27,7 +27,7 @@ jobs:
cargo build --verbose --release
- name: Run rustfmt
run: cargo fmt --all -- --check
run: cargo fmt --all -- -q

- name: Run clippy
run: cargo clippy --all --all-targets --all-features -- -D warnings
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/test_code.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
---
name: Build
name: Cargo Test
on:
pull_request:
push:
branches:
- trunk
push

jobs:
check:
name: Check
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Checkout sources
uses: actions/checkout@v2
Expand All @@ -26,7 +24,7 @@ jobs:
command: check
test:
name: Test Suite
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Checkout sources
uses: actions/checkout@v2
Expand Down
89 changes: 89 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,15 @@ tracing-subscriber = { version = "0.3.18", features = ["env-filter", "registry"]
version = "2.8.1"
default-features = false
features = ["async-std-runtime"]


[profile.release]
strip = true
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"

[dev-dependencies]
rstest = "0.18.2"
pretty_assertions = "1.2.1"

0 comments on commit b5b1712

Please sign in to comment.