Skip to content

RPCN 1.1

RPCN 1.1 #263

Workflow file for this run

name: Rust
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --release --verbose
- name: Run tests
run: cargo test --release --verbose
- run: mkdir artifact
- run: cp target/release/rpcn artifact/rpcn
- run: cp rpcn.cfg artifact/rpcn.cfg
- run: cp servers.cfg artifact/servers.cfg
- run: cp server_redirs.cfg artifact/server_redirs.cfg
- name: Create artifact
run: cd artifact && tar -zcvf ../rpcn-linux.tar.gz ./ && cd ..
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
with:
name: rpcn
path: rpcn-linux.tar.gz
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: rpcn-linux.tar.gz
build-win:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --release --verbose
- name: Run tests
run: cargo test --release --verbose
- run: mkdir artifact-win
- run: copy target/release/rpcn.exe artifact-win/rpcn.exe
- run: copy rpcn.cfg artifact-win/rpcn.cfg
- run: copy servers.cfg artifact-win/servers.cfg
- run: copy server_redirs.cfg artifact-win/server_redirs.cfg
- name: Create artifact
run: Compress-Archive -Path artifact-win/* -Destination rpcn-win.zip
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
with:
name: rpcn-win
path: rpcn-win.zip
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: rpcn-win.zip