-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (41 loc) · 1.17 KB
/
Copy pathci.yml
File metadata and controls
42 lines (41 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Build
on:
push:
branches:
- '**'
pull_request:
jobs:
build:
runs-on: ${{ matrix.settings.os }}
if: "!startsWith(github.ref, 'refs/tags/') && !contains(github.event.head_commit.message, '[skip build]')"
strategy:
fail-fast: false
matrix:
settings:
- os: ubuntu-latest
exe: mcping
- os: windows-latest
exe: mcping.exe
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo packages
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Build (Debug)
run: cargo build --all-features --verbose
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.settings.os }}
path: target/debug/${{ matrix.settings.exe }}