Files
NLnetLabs-krill/.github/workflows/ci.yml
T
Ximon Eighteen 7031576f63 Create a Krill DEB package via GH actions:
- Assumes that the target system has ca-certificates installed already.
  - Vendor OpenSSL to support Ubuntu 16.04 which only has OpenSSL 1.0.0.
  - Use an Ubuntu 16.04 compatible version of libgcc1 (don't use cargo-deb $auto
    depends as the GH 16.04 runner has a much newer libgcc1 package than stock
    Ubuntu 16.04).
  - Use GH caching to avoid repeat compilation of unchanging cargo deb and krill
    dependencies.
  - Sanity check the created DEB in targeted O/S versions.
2020-06-23 12:28:17 +02:00

46 lines
1.1 KiB
YAML

name: CI
on:
push:
paths-ignore:
- '.dockerignore'
- '.github/workflow/e2e.yml'
- '.github/workflow/pkg.yml'
- '.github/workflow/e2e test cache rebuild.yml'
- 'Changelog.md'
- 'Dockerfile'
- 'doc/**'
- 'docker/**'
- 'LICENSE'
- 'README.md'
- 'tests/e2e/**'
# Hmm, annoying, do we really have to duplicate this?
pull_request:
paths-ignore:
- '.dockerignore'
- '.github/workflow/e2e.yml'
- '.github/workflow/pkg.yml'
- '.github/workflow/e2e test cache rebuild.yml'
- 'Changelog.md'
- 'Dockerfile'
- 'doc/**'
- 'docker/**'
- 'LICENSE'
- 'README.md'
- 'tests/e2e/**'
jobs:
build:
name: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-16.04]
rust: [stable, beta]
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Install Rust
uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- run: cargo build --verbose
- run: cargo test --verbose