mirror of
https://github.com/NLnetLabs/dnst.git
synced 2026-09-26 11:44:55 +02:00
* Keygen skeleton.
* [keygen] Implement the basic features
* [keygen] synchronize files before exiting
* [keygen] Add help documentation
* [keygen] Generate '.ds' files for KSKs
* [keygen] Use 'display_as_bind()'
* [keygen] Add support for symlinks (Unix only)
* [keygen] Improve errors and support '.ds' symlinks
* Implement ldns-specific parsing for 'keygen'
* [keygen] Implement '-v' with version info
* [keygen] Add 'cfg(unix)' in ldns-parsing
* [keygen] Correctly handle duplicate options in ldns parsing
* Revert "[keygen] Implement '-v' with version info"
This reverts commit 643ab86bd4.
See: <https://github.com/NLnetLabs/dnst/pull/9#discussion_r1843460496>
* [keygen] Integrate the use of 'Env'
* [workflows/ci] Add OpenSSL installation steps
* [workflows/ci] Integrate OpenSSL for 'minimal_versions'
* [keygen] Improve the 'dnst' interface
* [keygen] Satisfy clippy
* [keygen] Simplify symlink CLI
* Add basic filesystem operations to 'Env'
* [keygen] Use symlink ops provided by 'Env'
* [keygen] Add basic tests for argument parsing
* [keygen] Add tests
* [keygen] Satisfy 'minimal-versions'
* [keygen] Satisfy clippy
* [keygen] Add Windows-specific missing branch
* [keygen] Document parsing for 'symlink'
* [keygen] Report error on '-r'
* [env] Refactor util fns into a 'util' module
* [keygen::symlink] Mark params as used, for Windows
* [keygen] Fix double error message
See: <https://github.com/NLnetLabs/dnst/pull/9#discussion_r1862213985>
* [keygen] Use 'Args::Report'
* [keygen] Allow invalid HTML in docs for Clap
* Use 'domain'-style imports
* [keygen] Use uppercase for expected clap values
* [keygen] use lowercase value names in Clap
---------
Co-authored-by: arya dradjica <arya@nlnetlabs.nl>
83 lines
2.7 KiB
YAML
83 lines
2.7 KiB
YAML
name: ci
|
|
on: [push, pull_request]
|
|
env:
|
|
RUSTFLAGS: "-D warnings"
|
|
jobs:
|
|
test:
|
|
name: Test
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
rust: [1.78.0, stable, beta, nightly]
|
|
env:
|
|
RUSTFLAGS: "-D warnings"
|
|
# We use 'vcpkg' to install OpenSSL on Windows.
|
|
VCPKG_ROOT: "${{ github.workspace }}\\vcpkg"
|
|
VCPKGRS_TRIPLET: x64-windows-release
|
|
# Ensure that OpenSSL is dynamically linked.
|
|
VCPKGRS_DYNAMIC: 1
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v1
|
|
- name: Install Rust
|
|
uses: hecrj/setup-rust-action@v2
|
|
with:
|
|
rust-version: ${{ matrix.rust }}
|
|
- if: matrix.os == 'ubuntu-latest'
|
|
run: sudo apt-get install -y libssl-dev
|
|
- if: matrix.os == 'windows-latest'
|
|
id: vcpkg
|
|
uses: johnwason/vcpkg-action@v6
|
|
with:
|
|
pkgs: openssl
|
|
triplet: ${{ env.VCPKGRS_TRIPLET }}
|
|
token: ${{ github.token }}
|
|
github-binarycache: true
|
|
- if: matrix.rust == 'stable'
|
|
run: rustup component add clippy
|
|
- if: matrix.rust == 'stable'
|
|
run: cargo clippy --all-features --all-targets -- -D warnings
|
|
- if: matrix.rust == 'stable' && matrix.os == 'ubuntu-latest'
|
|
run: cargo fmt --all -- --check
|
|
- run: cargo check --no-default-features --all-targets
|
|
- run: cargo test --all-features
|
|
|
|
minimal-versions:
|
|
name: Check minimal versions
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v1
|
|
- name: Install Rust
|
|
uses: hecrj/setup-rust-action@v2
|
|
with:
|
|
rust-version: "1.78.0"
|
|
- name: Install OpenSSL
|
|
run: sudo apt-get install -y libssl-dev
|
|
- name: Install nightly Rust
|
|
run: rustup install nightly
|
|
- name: Check with minimal-versions
|
|
run: |
|
|
cargo +nightly update -Z minimal-versions
|
|
cargo check --all-features --all-targets --locked
|
|
|
|
extra-tests:
|
|
name: Extra tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v1
|
|
- name: Install Rust
|
|
uses: hecrj/setup-rust-action@v2
|
|
- name: Install supporting tools/libraries
|
|
run: |
|
|
# The tests compare their output to that of LDNS tools, so we need to
|
|
# install them. Some tests work with DNSSEC keys for which the OpenSSL
|
|
# library must be compiled against which requires C build programs and
|
|
# pkg-config. Install everything we need.
|
|
sudo apt-get update
|
|
sudo apt-get install -y build-essential ldnsutils libssl-dev pkg-config
|
|
- name: Run tests that are normally ignored
|
|
run: cargo test --all-features --all-targets -- --ignored
|