mirror of
https://github.com/jedisct1/encrypted-dns-server
synced 2024-11-10 19:10:25 +00:00
29 lines
780 B
YAML
29 lines
780 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 encrypted-dns.toml encrypted-dns/
|
|
- uses: actions/upload-artifact@master
|
|
with:
|
|
name: encrypted-dns-linux-x86_64
|
|
path: encrypted-dns
|