Skip to content

Commit 2c67992

Browse files
authored
Merge pull request #1 from holoplot/jiajun-prepare-to-go-open-source
Add github action
2 parents 8359f64 + edcab18 commit 2c67992

File tree

2 files changed

+55
-112
lines changed

2 files changed

+55
-112
lines changed

.github/workflows/main.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Build and Test fft-convolution
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
env:
8+
CARGO_TERM_COLOR: always
9+
10+
jobs:
11+
format:
12+
name: Check Format
13+
runs-on: ubuntu-22.04
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Install Rust
18+
uses: dtolnay/rust-toolchain@stable
19+
with:
20+
components: rustfmt
21+
- name: Check formatting
22+
run: cargo fmt --check
23+
24+
build:
25+
name: Build and Test
26+
needs: format
27+
strategy:
28+
matrix:
29+
os: [macos-14, macos-15, ubuntu-22.04]
30+
include:
31+
- os: macos-14
32+
target: x86_64-apple-darwin
33+
- os: macos-15
34+
target: aarch64-apple-darwin
35+
- os: ubuntu-22.04
36+
target: x86_64-unknown-linux-gnu
37+
runs-on: ${{ matrix.os }}
38+
39+
steps:
40+
- uses: actions/checkout@v4
41+
42+
- name: Install Rust
43+
uses: dtolnay/rust-toolchain@stable
44+
with:
45+
targets: ${{ matrix.target }}
46+
47+
- name: Rust Cache
48+
uses: Swatinem/rust-cache@v2
49+
50+
- name: Build
51+
run: cargo build --release --target ${{ matrix.target }}
52+
53+
- name: Run tests
54+
run: cargo test --release --target ${{ matrix.target }}
55+

Jenkinsfile

Lines changed: 0 additions & 112 deletions
This file was deleted.

0 commit comments

Comments
 (0)