Repository navigation
93 lines (82 loc) · 2.77 KB
/
Copy pathdnssec-release.yml
File metadata and controls
93 lines (82 loc) · 2.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: DNSSEC Release Verification
on:
push:
tags:
- "v*"
schedule:
- cron: "23 8 * * 1"
workflow_dispatch:
inputs:
dns_server:
description: Recursive resolver used by the live DNSSEC checks
required: false
default: "1.1.1.1"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
live-dnssec:
name: Live DNSSEC
runs-on: ubuntu-24.04
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache Cargo and V8 build
id: build-cache
uses: ./.github/actions/cache-cargo-deps
with:
profile: release
- name: Install native dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
ca-certificates \
clang \
cmake \
curl \
g++ \
git \
libclang-dev \
libsqlite3-dev \
make \
perl \
pkg-config \
python3 \
xz-utils
- name: Install current protocol dependencies
uses: ./.github/actions/install-linux-protocol-deps
with:
prefix: ${{ runner.temp }}/fino-protocol-deps
- name: Build release binary
run: cargo build --release
- name: Check V8 artifact cache readiness
id: v8-cache-ready
if: ${{ !cancelled() && steps.build-cache.outputs.v8-cache-hit != 'true' }}
run: |
if [[ -s target/release/gn_out/obj/librusty_v8.a \
&& -s target/release/gn_out/src_binding.rs ]] || \
[[ -s target/release/build/gn_out/obj/librusty_v8.a \
&& -s target/release/build/gn_out/src_binding.rs ]]; then
echo 'ready=true' >> "$GITHUB_OUTPUT"
fi
- name: Save V8 build artifact cache
if: ${{ !cancelled() && steps.v8-cache-ready.outputs.ready == 'true' }}
uses: actions/cache/save@v4
with:
path: |
target/debug/gn_out/obj/librusty_v8.a
target/debug/gn_out/src_binding.rs
target/release/gn_out/obj/librusty_v8.a
target/release/gn_out/src_binding.rs
target/debug/build/gn_out/obj/librusty_v8.a
target/debug/build/gn_out/src_binding.rs
target/release/build/gn_out/obj/librusty_v8.a
target/release/build/gn_out/src_binding.rs
key: ${{ steps.build-cache.outputs.v8-cache-key }}
- name: Verify signed and bogus public domains
env:
FINO_DNS_LIVE: "1"
FINO_DNS_SERVER: ${{ inputs.dns_server || '1.1.1.1' }}
run: ./target/release/fino test tests/net/dns-live.test.ts