Skip to content

Commit

Permalink
chore: remove server work
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhazhazhu committed Jan 24, 2024
1 parent 3b31d56 commit 8ba2bff
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 41 deletions.
37 changes: 35 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
build: [linux, macos, windows]
include:
- build: linux
os: ubuntu-latest
os: ubuntu-20.04
rust: nightly
target: x86_64-unknown-linux-musl
archive-name: airnc-linux.tar.gz
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:

- name: Install musl(linux)
if: matrix.build == 'linux'
run: sudo apt-get install -y musl-tools libssl-dev
run: sudo apt install pkg-config musl-tools libssl-dev -y

- name: Build binary
run: cargo build --verbose --release --target ${{ matrix.target }} --package airnc
Expand Down Expand Up @@ -90,3 +90,36 @@ jobs:
with:
draft: true
files: archive/${{ matrix.archive-name }}

server:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
override: true
target: x86_64-unknown-linux-musl

- name: Install musl
run: sudo apt-get install -y musl-tools

- name: Build binary
run: cargo build --verbose --release --package airnc-server
env:
RUST_BACKTRACE: 1

- name: Post to Alibaba Cloud
uses: easingthemes/[email protected]
env:
ARGS: "-avz --delete"
SOURCE: "target/release/airnc-server"
TARGET: "${{ secrets.REMOTE_TARGET }}"
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
39 changes: 0 additions & 39 deletions .github/workflows/server.yml

This file was deleted.

0 comments on commit 8ba2bff

Please sign in to comment.