Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 41 additions & 41 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,25 @@ on:
push:
branches:
- release
- master
- release
tags:
- 'latest'
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: openssl dependency
uses: actions/checkout@v3
- name: Install OpenSSL dependency
run: |
sudo apt-get install libssl-dev
- name: Updating cargo
run: |
cargo update
- name: Update Cargo
run: cargo update
- name: Build
run: |
cargo build --target=x86_64-unknown-linux-gnu --release
mkdir out
mkdir -p out
mv -v target/x86_64-unknown-linux-gnu/release/doge out/doge_linux_64bit
- name: Upload to artifact
- name: Upload to Artifact
uses: actions/upload-artifact@v3
with:
name: binary_linux
Expand All @@ -34,10 +31,9 @@ jobs:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Updating cargo
run: |
cargo update
uses: actions/checkout@v3
- name: Update Cargo
run: cargo update
- name: Setup Dependencies
run: |
rustup target add aarch64-apple-darwin
Expand All @@ -46,10 +42,10 @@ jobs:
run: |
cargo build --target=aarch64-apple-darwin --release
cargo build --target=x86_64-apple-darwin --release
mkdir out
mkdir -p out
mv -v target/aarch64-apple-darwin/release/doge out/doge_darwin_arm64
mv -v target/x86_64-apple-darwin/release/doge out/doge_darwin_x86_64
- name: Upload to artifact
- name: Upload to Artifact
uses: actions/upload-artifact@v3
with:
name: binary_macos
Expand All @@ -58,38 +54,42 @@ jobs:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup rust
run: |
rustup target add aarch64-pc-windows-msvc
uses: actions/checkout@v3
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Setup Windows Dependencies
run: rustup target add aarch64-pc-windows-msvc
- name: Build
run: |
cargo build --release --target x86_64-pc-windows-msvc
mkdir out
mkdir -p out
move target\x86_64-pc-windows-msvc\release\doge.exe out\doge_windows_x86_64.exe
- name: Upload to artifact
- name: Upload to Artifact
uses: actions/upload-artifact@v3
with:
name: binary_windows
path: ./out/*
release:
runs-on: ubuntu-latest
needs:
- build-linux
- build-windows
- build-macos
steps:
- name: Download Artifact
uses: actions/download-artifact@v3
with:
path: ./artifacts
- name: organize files
run: |
tree artifacts
mkdir out
mv -v artifacts/**/doge_* out/
- name: Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
files: ./out/doge_*
runs-on: ubuntu-latest
needs:
- build-linux
- build-windows
- build-macos
steps:
- name: Download Artifact
uses: actions/download-artifact@v3
with:
path: ./artifacts
- name: Organize Files
run: |
mkdir -p out
mv -v artifacts/**/doge_* out/
- name: Release
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: softprops/action-gh-release@v1
with:
files: ./out/doge_*
24 changes: 12 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ exclude = [
homepage = "https://dns.lookup.dog/"
license = "MIT"

version = "0.2.7"
version = "0.2.8"

[[bin]]
name = "doge"
Expand Down Expand Up @@ -41,7 +41,7 @@ panic = "abort"

# dns stuff
doge_dns = "1.0.2"
doge_transport = "0.2.5"
doge_transport = "0.2.6"

# command-line
ansi_term = "0.12"
Expand Down
Loading