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 b9491f2
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 40 deletions.
42 changes: 41 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,16 @@ jobs:

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

- name: Build binary
if: matrix.build == 'linux'
run: cargo build --verbose --release --package airnc
env:
RUST_BACKTRACE: 1

- name: Build binary
if: matrix.build != 'linux'
run: cargo build --verbose --release --target ${{ matrix.target }} --package airnc
env:
RUST_BACKTRACE: 1
Expand Down Expand Up @@ -90,3 +97,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 b9491f2

Please sign in to comment.