Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite #294

Open
wants to merge 22 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[profile.default.junit] # this can be some other profile, too
path = "junit.xml"
2 changes: 0 additions & 2 deletions .dockerignore

This file was deleted.

25 changes: 0 additions & 25 deletions .github/dependabot.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/cache.yaml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/docker.yaml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/musl.yaml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/release.yaml

This file was deleted.

104 changes: 21 additions & 83 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,115 +3,53 @@ on:
push:
paths-ignore:
- "cross/**"
branches:
- dev
pull_request:
branches:
- "**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- run: docker pull ghcr.io/conblem/musl-openssl
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-build-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --target x86_64-unknown-linux-musl --release
# improve in the future as soon as audit passes again
- uses: actions-rs/audit-check@v1
continue-on-error: true
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v2
with:
push: true
tags: ghcr.io/conblem/acme-dns-latest:${{ github.sha }}
context: ./
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-clippy-${{ hashFiles('**/Cargo.lock') }}
- name: Annotate commit with clippy warnings
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- macos-latest
#- windows-latest
- ubuntu-latest
toolchain: [ stable, nightly ]
include:
- os: ubuntu-latest
toolchain: stable
coverage: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install openssl on windows
run: |
vcpkg install openssl:x64-windows-static-md
vcpkg integrate install
if: ${{ matrix.os == 'windows-latest' }}
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ matrix.os }}-${{ matrix.toolchain }}-coverage--${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/cargo@v1
if: ${{ !matrix.coverage }}
with:
command: test
args: --features disable-docker
- uses: actions-rs/tarpaulin@v0.1
if: ${{ matrix.coverage }}
with:
args: "--skip-clean --avoid-cfg-tarpaulin"
toolchain: stable
profile: minimal
components: llvm-tools-preview
- uses: taiki-e/install-action@cargo-llvm-cov
- uses: taiki-e/install-action@nextest
- uses: Swatinem/rust-cache@v1
- name: Generate code coverage
run: cargo llvm-cov nextest --all-features --workspace --lcov --output-path lcov.info
- uses: codecov/codecov-action@v1
if: ${{ matrix.coverage }}
with:
files: lcov.info
fail_ci_if_error: true
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: always() # always run even if the previous step fails
with:
report_paths: 'target/nextest/default/junit.xml'
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: rustfmt
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
args: -- --check
16 changes: 0 additions & 16 deletions .idea/runConfigurations/Run_tests_without_docker.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .releaserc.yaml

This file was deleted.

Loading