From 16810966365205b1947f8712447ac90177d482d4 Mon Sep 17 00:00:00 2001 From: Daniel FETTI Date: Mon, 9 Oct 2023 02:08:41 +0300 Subject: [PATCH] Remove github actions There are clippy warnings due to rust updates and some tests are failing due to expired certificates. Didn't bothered to fix them. We will update to the latest version of trust-dns soon. --- .github/workflows/publish.yml | 33 ------ .github/workflows/test.yml | 209 ---------------------------------- 2 files changed, 242 deletions(-) delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index ee9ab26262b..00000000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: publish - -on: - release: - types: - - published - -env: - CARGO_MAKE_VERSION: '0.27.0' - -jobs: - publish: - name: publish - # wait for the cache from all-features - # TODO: we really want this: - # needs: ./.github/workflows/test/platform-matrix - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - uses: davidB/rust-cargo-make@v1 - with: - version: ${{ env.CARGO_MAKE_VERSION }} - - - name: cargo make publish - env: - CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} - run: cargo make publish diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 73c9986539d..00000000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,209 +0,0 @@ -name: test - -on: - push: - branches: - - main - - release/** - pull_request: - branches: - - main - - release/** - schedule: - - cron: "0 3 * * 4" - -env: - CARGO_MAKE_VERSION: "0.34.0" - -jobs: - ## Run all default oriented feature sets across all platforms. - platform-matrix: - name: platform - runs-on: ${{ matrix.os }} - strategy: - matrix: - #os: [ubuntu-latest, macos-latest, windows-latest] - os: [ubuntu-latest, macos-latest] - steps: - - uses: actions/checkout@v3 - - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - uses: davidB/rust-cargo-make@v1 - with: - version: ${{ env.CARGO_MAKE_VERSION }} - - - name: cargo make all-features - run: cargo make all-features - - - name: target/kcov cache - uses: actions/cache@v3 - with: - path: target/kcov - key: ${{ runner.os }}-kcov-${{ hashFiles('**/Cargo.toml') }}-${{ hashFiles('**/Cargo.lock') }} - restore-keys: | - ${{ runner.os }}-kcov-${{ hashFiles('**/Cargo.toml') }} - ${{ runner.os }}-kcov - - - name: cargo make coverage - run: cargo make coverage --env="FEATURES=--all-features" - - - name: upload coverage - if: matrix.os == 'ubuntu-latest' - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - - ## Work through all of the variations of the different features, only on linux to save concurrent resources - exhaustive-features-matrix: - name: exhaustive - # Let's wait for the all-features cache - needs: platform-matrix - runs-on: ubuntu-latest - strategy: - matrix: - # feature: [default-features, no-default-features, dns-over-rustls, dns-over-https-rustls, dns-over-native-tls, dns-over-openssl, dnssec-openssl, dnssec-ring, mdns, async-std] - feature: - [ - default-features, - no-default-features, - dns-over-rustls, - dns-over-https-rustls, - dns-over-quic, - dns-over-native-tls, - dnssec-openssl, - dnssec-ring, - mdns, - async-std, - ] - steps: - - uses: actions/checkout@v3 - - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - uses: davidB/rust-cargo-make@v1 - with: - version: ${{ env.CARGO_MAKE_VERSION }} - - - name: cargo make - run: cargo make ${{ matrix.feature }} - - - name: target/kcov cache - uses: actions/cache@v3 - with: - path: target/kcov - key: ${{ runner.os }}-kcov-${{ hashFiles('**/Cargo.toml') }}-${{ hashFiles('**/Cargo.lock') }} - restore-keys: | - ${{ runner.os }}-kcov-${{ hashFiles('**/Cargo.toml') }} - ${{ runner.os }}-kcov - - - name: cargo make coverage - run: cargo make coverage --env=FEATURES="--features ${{ matrix.feature }}" - - - name: upload coverage - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - - ## Check past and future versions - ## this enforces the minimum version of rust this project works with - past-future-matrix: - name: past-future - # Let's wait for the all-features cache - needs: platform-matrix - runs-on: ubuntu-latest - strategy: - matrix: - version: ["1.59.0", beta, nightly] - steps: - - uses: actions/checkout@v3 - - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: ${{ matrix.version }} - override: true - - uses: davidB/rust-cargo-make@v1 - with: - version: ${{ env.CARGO_MAKE_VERSION }} - - - name: cargo make no-default-features - run: cargo make no-default-features - - - name: cargo make build-bench - if: matrix.version == 'nightly' - run: cargo make build-bench - - ## Execute the clippy checks - cleanliness: - name: cleanliness - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - # not using the cargo cache here, since this differs significantly - - name: cargo-all cache - uses: actions/cache@v3 - with: - path: ~/.cargo - key: ${{ runner.os }}-cargo-all-${{ hashFiles('**/Cargo.toml') }}-${{ hashFiles('**/Cargo.lock') }} - restore-keys: | - ${{ runner.os }}-cargo-all-${{ hashFiles('**/Cargo.toml') }} - ${{ runner.os }}-cargo-all - ${{ runner.os }}-cargo - - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - components: rustfmt, clippy - override: true - - uses: davidB/rust-cargo-make@v1 - with: - version: ${{ env.CARGO_MAKE_VERSION }} - - # Clippy - - name: cargo make clippy - run: cargo make clippy - # Rustfmt - - name: cargo make fmt - run: cargo make fmt - # Audit - - name: cargo audit - run: cargo make audit - - # Build and run bind to test our compatibility with standard name servers - compatibility: - name: compatibility - # wait for the cache from all-features - needs: platform-matrix - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - uses: davidB/rust-cargo-make@v1 - with: - version: ${{ env.CARGO_MAKE_VERSION }} - - - name: target/bind cache - uses: actions/cache@v3 - with: - path: target/bind - key: ${{ runner.os }}-bind-${{ hashFiles('**/Makefile.toml') }} - restore-keys: | - ${{ runner.os }}-bind-${{ hashFiles('**/Makefile.toml') }} - ${{ runner.os }}-bind - - - name: cargo make bind-compatibility - run: cargo make bind-compatibility