mirror of
https://github.com/DNSCrypt/doh-server.git
synced 2025-04-01 20:27:34 +03:00
Add Github actions
This commit is contained in:
parent
3b3bb6f0e7
commit
cb31469004
4 changed files with 54 additions and 2 deletions
1
.github/FUNDING.yml
vendored
Normal file
1
.github/FUNDING.yml
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
open_collective: dnscrypt
|
37
.github/workflows/rust.yml
vendored
Normal file
37
.github/workflows/rust.yml
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
name: Rust
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- uses: hecrj/setup-rust-action@master
|
||||
with:
|
||||
rust-version: nightly
|
||||
- name: Check Cargo availability
|
||||
run: cargo --version
|
||||
- name: Check Rustup default toolchain
|
||||
run: rustup default | grep nightly
|
||||
- name: Install cargo-deb
|
||||
run: cargo install --debug cargo-deb
|
||||
- name: Build
|
||||
run: |
|
||||
echo 'lto = "fat"' >> Cargo.toml
|
||||
env RUSTFLAGS="-C link-arg=-s" cargo build --release
|
||||
mkdir doh-proxy
|
||||
mv target/release/doh-proxy doh-proxy/
|
||||
cp README.md doh-proxy/
|
||||
- name: Debian package
|
||||
run: |
|
||||
cargo deb
|
||||
- uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: doh-proxy-linux-x86_64
|
||||
path: doh-proxy
|
||||
- uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: debian
|
||||
path: target/debian
|
16
Cargo.toml
16
Cargo.toml
|
@ -9,6 +9,7 @@ homepage = "https://github.com/jedisct1/rust-doh"
|
|||
repository = "https://github.com/jedisct1/rust-doh"
|
||||
categories = ["asynchronous", "network-programming","command-line-utilities"]
|
||||
edition = "2018"
|
||||
readme = "README.md"
|
||||
|
||||
[features]
|
||||
default = []
|
||||
|
@ -26,7 +27,20 @@ tokio-current-thread = "0.1.6"
|
|||
tokio-timer = "0.2.11"
|
||||
tokio-tls = { version = "0.2.1", optional = true }
|
||||
|
||||
[package.metadata.deb]
|
||||
extended-description = """\
|
||||
A fast and secure DoH (DNS-over-HTTPS) server written in Rust."""
|
||||
assets = [
|
||||
["target/release/doh-proxy", "usr/bin/", "755"],
|
||||
["README.md", "usr/share/doc/doh-proxy/README.md", "644"]
|
||||
]
|
||||
section = "network"
|
||||
depends = "$auto"
|
||||
priority = "optional"
|
||||
|
||||
[profile.release]
|
||||
codegen-units = 1
|
||||
incremental = false
|
||||
lto = true
|
||||
panic = "abort"
|
||||
opt-level = 3
|
||||
panic = "abort"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# doh-proxy
|
||||
|
||||
A DNS-over-HTTP server proxy in Rust. Add a webserver and you get DNS-over-HTTPS, which is actually DNS-over-HTTP/2.
|
||||
A fast and secure DoH (DNS-over-HTTPS) server written in Rust.
|
||||
|
||||
## Installation
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue