Skip to content

Commit 7576e15

Browse files
committed
add ci
1 parent 8fc7401 commit 7576e15

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: ci for server and web
2+
3+
on:
4+
push:
5+
paths:
6+
- "gogo-server/**"
7+
- "gogo-web/**"
8+
- ".github/workflows/ci_server_and_web.yml"
9+
10+
jobs:
11+
build:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
include:
17+
- build_name: linux-x86_64
18+
os: ubuntu-22.04
19+
target: x86_64-unknown-linux-gnu
20+
runs-on: ${{ matrix.os }}
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Install Rust toolchain
24+
uses: dtolnay/rust-toolchain@stable
25+
with:
26+
toolchain: stable
27+
targets: ${{ matrix.target }}
28+
- name: Cargo build
29+
run: cargo build --release ${{ matrix.target && '--target' }} ${{ matrix.target }}
30+
env:
31+
RUSTFLAGS: ${{ matrix.RUSTFLAGS }}
32+
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.MACOSX_DEPLOYMENT_TARGET }}
33+

0 commit comments

Comments
 (0)