You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
encrypted-dns-server/.github/workflows/rust.yml

29 lines
788 B
YAML

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: Build
run: |
echo 'lto = "fat"' >> Cargo.toml
env RUSTFLAGS="-C link-arg=-s" cargo build --release
mkdir encrypted-dns
mv target/release/encrypted-dns encrypted-dns/
cp README.md example-encrypted-dns.toml encrypted-dns/
- uses: actions/upload-artifact@master
with:
name: encrypted-dns-linux-x86_64
path: encrypted-dns