mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-05-17 07:29:32 +00:00
ci: add nim-bindings-test
This commit is contained in:
parent
798fbf731a
commit
f150619b17
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
@ -2,9 +2,9 @@ name: CI
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [main]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [main]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
@ -36,3 +36,21 @@ jobs:
|
|||||||
- run: rustup update stable && rustup default stable
|
- run: rustup update stable && rustup default stable
|
||||||
- run: rustup component add rustfmt
|
- run: rustup component add rustfmt
|
||||||
- run: cargo fmt --all -- --check
|
- run: cargo fmt --all -- --check
|
||||||
|
|
||||||
|
nim-bindings-test:
|
||||||
|
name: Nim Bindings Test
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, macos-latest]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- run: rustup update stable && rustup default stable
|
||||||
|
- name: Install Nim via choosenim
|
||||||
|
run: |
|
||||||
|
curl https://nim-lang.org/choosenim/init.sh -sSf | sh -s -- -y
|
||||||
|
echo "$HOME/.nimble/bin" >> $GITHUB_PATH
|
||||||
|
- run: nimble install -dy
|
||||||
|
working-directory: nim-bindings
|
||||||
|
- run: nimble pingpong
|
||||||
|
working-directory: nim-bindings
|
||||||
|
|||||||
@ -23,4 +23,4 @@ before build:
|
|||||||
|
|
||||||
task pingpong, "Run pingpong example":
|
task pingpong, "Run pingpong example":
|
||||||
buildRust()
|
buildRust()
|
||||||
exec "nim c -r --path:src --passL:../target/release/liblibchat.a examples/pingpong.nim"
|
exec "nim c -r --path:src --passL:../target/release/liblibchat.a --passL:-lm examples/pingpong.nim"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user