Skip to content

Commit

Permalink
feat(ci): add win64 and linux debug
Browse files Browse the repository at this point in the history
  • Loading branch information
HsiangNianian authored Dec 24, 2023
1 parent a76d1fd commit 0bdfd46
Showing 1 changed file with 44 additions and 3 deletions.
47 changes: 44 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ on:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
build-win64-debug:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Update local toolchain
Expand Down Expand Up @@ -47,5 +47,46 @@ jobs:
- name: Package and Upload
uses: actions/upload-artifact@v3
with:
name: Quantumix-Server-${{ github.sha }}
name: Quantumix-Server-Win64-Debug-${{ github.sha }}
path: ./target/debug/quantumix-server.exe

build-linux-debug:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Update local toolchain
run: |
rustup update
- name: Toolchain info
run: |
cargo --version --verbose
rustc --version
- name: Lint Code
run: |
cd .
# cargo fmt -- --check
- name: Install Oblivion
env:
GH_TOKEN: ${{ secrets.QUANTUMIX_TOKEN }}
run: |
cd .
git clone --depth 1 https://${GH_TOKEN}@github.com/noctisynth/oblivion-rust.git
mv oblivion-rust oblivion
ls
- name: Test Project
run: |
cargo check
cargo test --all
- name: Build Quantumix-Server
run: |
cargo build
ls target/debug
- name: Package and Upload
uses: actions/upload-artifact@v3
with:
name: Quantumix-Server-Linux-Debug-${{ github.sha }}
path: ./target/debug/quantumix-server

0 comments on commit 0bdfd46

Please sign in to comment.