Skip to content

Commit 68047cd

Browse files
committed
Build system
1 parent 66c3cb2 commit 68047cd

File tree

867 files changed

+127986
-16511
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

867 files changed

+127986
-16511
lines changed

.cargo/config.toml

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,12 @@
1-
[target.'cfg(debug_assertions)']
2-
runner = 'sudo -E'
3-
rustflags = [
4-
"-C", "linker=clang",
5-
"-C", "link-arg=-fuse-ld=lld",
6-
"-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",
7-
"-C", "opt-level=0",
8-
"-C", "lto=false",
9-
]
1+
[env]
2+
COMPILE_ENV = { value = "compile-env", relative = true, force = false }
3+
PATH = { value = "compile-env/bin", relative = true, force = true }
4+
LD_LIBRARY_PATH = { value = "compile-env/lib", relative = true, force = true }
5+
LIBCLANG_PATH = { value = "compile-env/lib", relative = true, force = true }
106

11-
[target.'cfg(not(debug_assertions))']
12-
rustflags = [
13-
"-C", "linker=clang",
14-
"-C", "link-arg=-fuse-ld=lld",
15-
"-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",
16-
"-C", "opt-level=3",
17-
"-C", "codegen-units=1",
18-
"-C", "linker-plugin-lto",
19-
"-C", "lto=thin",
20-
"-C", "embed-bitcode=yes",
21-
# Full RELRO as a basic security measure
22-
# <https://www.redhat.com/en/blog/hardening-elf-binaries-using-relocation-read-only-relro>
23-
"-C", "relro-level=full",
24-
# "-Z", "sanitizer=cfi",
25-
# "-Z", "sanitizer=safestack",
26-
]
7+
[build]
8+
target = "x86_64-unknown-linux-gnu"
9+
10+
[alias]
11+
just = ["just", "cargo"]
12+
sterile = ["just", "sterile", "cargo"]

.config/nextest.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[profile.default]
2+
retries = 3
3+
test-threads = "num-cpus"
4+
status-level = "all"
5+
final-status-level = "all"
6+
failure-output = "immediate"
7+
success-output = "immediate"
8+
fail-fast = "false"
9+
10+
[profile.default.junit]
11+
path = "default.xml"
12+
store-success-output = true
13+
store-failure-output = true
14+
15+
[profile.dev]
16+
17+
[profile.dev.junit]
18+
path = "dev.xml"
19+
store-success-output = true
20+
store-failure-output = true
21+
22+
[profile.release]
23+
[profile.release.junit]
24+
path = "release.xml"
25+
store-success-output = true
26+
store-failure-output = true

.devcontainer/devcontainer.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ updates:
66
directories:
77
- /
88
schedule:
9-
interval: "daily"
9+
interval: "weekly"
10+
versioning-strategy: "widen"
1011
groups:
1112
dev-dependencies:
12-
applies-to: version-updates
13+
applies-to: "version-updates"
1314
patterns:
1415
- "*"
1516
update-types:

.github/workflows/build-and-deploy-docs.yml

Lines changed: 0 additions & 124 deletions
This file was deleted.

.github/workflows/bump.yml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# The primary point of this workflow is to ensure that the developer experience is good.
2+
# We take a very vanilla ubuntu image, install all necessary dependencies via "normal" means,
3+
# and then run the build and test steps as described in the README.md file.
4+
5+
# The artifacts produced by these builds are not intended to be used for anything other than
6+
# ensuring that the developer experience is good.
7+
8+
# Production artifacts are produced in a sterile environment (in another CI workflow).
9+
10+
11+
name: "bump.yml"
12+
on:
13+
workflow_dispatch:
14+
inputs:
15+
debug_enabled:
16+
type: "boolean"
17+
description: "Run with tmate enabled"
18+
required: false
19+
default: false
20+
schedule:
21+
# Check for updates at 3:18am every day.
22+
# I avoid midnight because everyone uses midnight and
23+
# I don't need to contribute to load spikes.
24+
- cron: "18 3 * * *"
25+
26+
concurrency:
27+
group: "${{ github.workflow }}:${{ github.ref }}"
28+
cancel-in-progress: true
29+
30+
permissions:
31+
contents: "write"
32+
pull-requests: "write"
33+
packages: "read"
34+
id-token: "write"
35+
jobs:
36+
update:
37+
runs-on: "ubuntu-latest"
38+
steps:
39+
- name: "login to ghcr.io"
40+
uses: "docker/login-action@v3"
41+
with:
42+
registry: "ghcr.io"
43+
username: "${{ github.actor }}"
44+
password: "${{ secrets.GITHUB_TOKEN }}"
45+
- name: "Checkout"
46+
uses: "actions/checkout@v4"
47+
- name: "install rust"
48+
uses: "dtolnay/rust-toolchain@stable"
49+
- uses: "cargo-bins/cargo-binstall@main"
50+
- name: "install cargo-deny"
51+
run: |
52+
cargo binstall --no-confirm cargo-deny
53+
- name: "deny check"
54+
run: |
55+
cargo deny check
56+
- name: "install envsubst"
57+
run: |
58+
sudo apt-get update
59+
sudo apt-get --yes --no-install-recommends gettext
60+
- run: |
61+
./scripts/update-versions.sh
62+
- name: "Create Pull Request"
63+
uses: "peter-evans/create-pull-request@v7"
64+
with:
65+
branch: "bump/dpdk-sys"
66+
title: "bump/dpdk-sys"
67+
labels: |
68+
automated
69+
dependencies
70+
signoff: "true"
71+
commit-message: "bump/dpdk-sys"
72+
sign-commits: "true"
73+
body: "bump dpdk-sys"
74+
75+
- name: "Setup tmate session for debug"
76+
if: ${{ failure() && github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
77+
uses: "mxschmitt/action-tmate@v3"
78+
timeout-minutes: 60
79+
with:
80+
limit-access-to-actor: true

0 commit comments

Comments
 (0)