Skip to content

Commit

Permalink
Build system
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-noland committed Nov 8, 2024
1 parent 66c3cb2 commit b88ec42
Show file tree
Hide file tree
Showing 867 changed files with 127,966 additions and 16,511 deletions.
36 changes: 11 additions & 25 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,26 +1,12 @@
[target.'cfg(debug_assertions)']
runner = 'sudo -E'
rustflags = [
"-C", "linker=clang",
"-C", "link-arg=-fuse-ld=lld",
"-C", "link-arg=--ld-path=/home/dnoland/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld/ld.lld",
"-C", "opt-level=0",
"-C", "lto=false",
]
[env]
COMPILE_ENV = { value = "compile-env", relative = true, force = false }
PATH = { value = "compile-env/bin", relative = true, force = true }
LD_LIBRARY_PATH = { value = "compile-env/lib", relative = true, force = true }
LIBCLANG_PATH = { value = "compile-env/lib", relative = true, force = true }

[target.'cfg(not(debug_assertions))']
rustflags = [
"-C", "linker=clang",
"-C", "link-arg=-fuse-ld=lld",
"-C", "link-arg=--ld-path=/home/dnoland/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld/ld.lld",
"-C", "opt-level=3",
"-C", "codegen-units=1",
"-C", "linker-plugin-lto",
"-C", "lto=thin",
"-C", "embed-bitcode=yes",
# Full RELRO as a basic security measure
# <https://www.redhat.com/en/blog/hardening-elf-binaries-using-relocation-read-only-relro>
"-C", "relro-level=full",
# "-Z", "sanitizer=cfi",
# "-Z", "sanitizer=safestack",
]
[build]
target = "x86_64-unknown-linux-gnu"

[alias]
just = ["just", "cargo"]
sterile = ["just", "sterile", "cargo"]
26 changes: 26 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[profile.default]
retries = 3
test-threads = "num-cpus"
status-level = "all"
final-status-level = "all"
failure-output = "immediate"
success-output = "immediate"
fail-fast = "false"

[profile.default.junit]
path = "default.xml"
store-success-output = true
store-failure-output = true

[profile.dev]

[profile.dev.junit]
path = "dev.xml"
store-success-output = true
store-failure-output = true

[profile.release]
[profile.release.junit]
path = "release.xml"
store-success-output = true
store-failure-output = true
16 changes: 0 additions & 16 deletions .devcontainer/devcontainer.json

This file was deleted.

5 changes: 3 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ updates:
directories:
- /
schedule:
interval: "daily"
interval: "weekly"
versioning-strategy: "widen"
groups:
dev-dependencies:
applies-to: version-updates
applies-to: "version-updates"
patterns:
- "*"
update-types:
Expand Down
124 changes: 0 additions & 124 deletions .github/workflows/build-and-deploy-docs.yml

This file was deleted.

70 changes: 70 additions & 0 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: "bump.yml"
on:
workflow_dispatch:
inputs:
debug_enabled:
type: "boolean"
description: "Run with tmate enabled"
required: false
default: false
schedule:
# Check for updates at 3:18am every day.
# I avoid midnight because everyone uses midnight and
# I don't need to contribute to load spikes.
- cron: "18 3 * * *"

concurrency:
group: "${{ github.workflow }}:${{ github.ref }}"
cancel-in-progress: true

permissions:
contents: "write"
pull-requests: "write"
packages: "read"
id-token: "write"
jobs:
update:
runs-on: "ubuntu-latest"
steps:
- name: "login to ghcr.io"
uses: "docker/login-action@v3"
with:
registry: "ghcr.io"
username: "${{ github.actor }}"
password: "${{ secrets.GITHUB_TOKEN }}"
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "install rust"
uses: "dtolnay/rust-toolchain@stable"
- uses: "cargo-bins/cargo-binstall@main"
- name: "install cargo-deny"
run: |
cargo binstall --no-confirm cargo-deny
- name: "deny check"
run: |
cargo deny check
- name: "install envsubst"
run: |
sudo apt-get update
sudo apt-get --yes --no-install-recommends gettext
- run: |
./scripts/update-versions.sh
- name: "Create Pull Request"
uses: "peter-evans/create-pull-request@v7"
with:
branch: "bump/dpdk-sys"
title: "bump/dpdk-sys"
labels: |
automated
dependencies
signoff: "true"
commit-message: "bump/dpdk-sys"
sign-commits: "true"
body: "bump dpdk-sys"

- name: "Setup tmate session for debug"
if: ${{ failure() && github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
uses: "mxschmitt/action-tmate@v3"
timeout-minutes: 60
with:
limit-access-to-actor: true
Loading

0 comments on commit b88ec42

Please sign in to comment.