Skip to content

Commit

Permalink
Implement CI
Browse files Browse the repository at this point in the history
Signed-off-by: Kristupas Antanavicius <kristupas.antanavicius@nordsec.com>
  • Loading branch information
arg0d committed Nov 23, 2023
1 parent bb8fd2d commit bf84290
Show file tree
Hide file tree
Showing 5 changed files with 1,308 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: C++

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
container:
image: rust:1.72-bullseye
steps:
- uses: actions/checkout@v3
- name: Build
run: |
cargo build --release --package uniffi-bindgen-cpp
test-bindings:
runs-on: ubuntu-latest
container:
image: ghcr.io/nordsecurity/uniffi-bindgen-cpp-test-runner:v0.1.0
steps:
- uses: actions/checkout@v3
- name: Test bindings
shell: bash
env:
# Github sets HOME to /github/home and breaks dependencies in Docker image..
# https://github.com/actions/runner/issues/863
HOME: /root
run: |
source ~/.bashrc
./test_bindings.sh
Loading

0 comments on commit bf84290

Please sign in to comment.