Skip to content

Commit

Permalink
ci(workflow/release): add linux binaries to release workflow (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
M0dEx authored Aug 30, 2023
2 parents c22c7e9 + 1cbc29e commit d3fec9f
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
changelog:
categories:
- title: Changes
labels:
- '*'
exclude:
labels:
- dependencies
- title: Dependencies
labels:
- dependencies
38 changes: 37 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ on:
types: [created]

jobs:
release:
publish-crate:
name: Publish crate

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
name: Checkout repository
Expand All @@ -22,3 +25,36 @@ jobs:
name: Publish crate
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

build-linux-binaries:
name: Build x86_64 Linux binaries

runs-on: ubuntu-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v2
name: Checkout repository
- uses: actions-rs/toolchain@v1
name: Set up toolchain
with:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v2
name: Cache toolchain and dependencies
- name: Build x86_64 Linux binaries
run: |
cargo build --release
mkdir ./quincy-linux-x86_64
cp target/release/quincy-client quincy-linux-x86_64/
cp target/release/quincy-server quincy-linux-x86_64/
cp target/release/quincy-users quincy-linux-x86_64/
tar zcf quincy-linux-x86_64.tar.gz -C quincy-linux-x86_64 .
- uses: softprops/action-gh-release@v1
name: Add binary to release
with:
files: |
quincy-linux-x86_64.tar.gz
4 changes: 4 additions & 0 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:

jobs:
test:
name: Test crate

strategy:
matrix:
# unnecessary until macos-latest runs on arm64 arch
Expand Down Expand Up @@ -37,6 +39,8 @@ jobs:
command: test

lint:
name: Check code style

strategy:
matrix:
# unnecessary until macos-latest runs on arm64 arch
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description = "QUIC-based VPN"
readme = "README.md"
homepage = "https://github.com/M0dEx/quincy"
repository = "https://github.com/M0dEx/quincy"
keywords = ["vpn", "quic", "tunnel", "networking", "tokio", "async"]
keywords = ["vpn", "quic", "tunnel", "networking", "tokio"]
categories = ["command-line-utilities", "network-programming"]
edition = "2021"

Expand Down

0 comments on commit d3fec9f

Please sign in to comment.