Skip to content

Commit 1e1b2c4

Browse files
committed
ci: add build-ffi job
1 parent cc19efa commit 1e1b2c4

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,36 @@ jobs:
6060
- name: Clippy
6161
if: ${{ matrix.rust.version != '1.48.0' }}
6262
run: cargo clippy ${{ matrix.build-args }} -- -D warnings
63+
64+
build-ffi:
65+
name: Build FFI
66+
runs-on: ubuntu-latest
67+
defaults:
68+
run:
69+
working-directory: ./negentropy-ffi
70+
strategy:
71+
matrix:
72+
rust:
73+
- version: stable # STABLE
74+
steps:
75+
- name: Checkout
76+
uses: actions/checkout@v3
77+
- name: Cache
78+
uses: actions/cache@v3
79+
with:
80+
path: |
81+
~/.cargo/registry
82+
~/.cargo/git
83+
target
84+
key: ${{ runner.os }}-cargo-ffi-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
85+
- name: Set default toolchain
86+
run: rustup default ${{ matrix.rust.version }}
87+
- name: Set profile
88+
run: rustup set profile minimal && rustup component add clippy
89+
- name: Build
90+
run: cargo build
91+
- name: Tests
92+
run: cargo test
93+
- name: Clippy
94+
run: cargo clippy -- -D warnings
6395

0 commit comments

Comments
 (0)