Skip to content

C# Tests

C# Tests #122

Workflow file for this run

name: C++
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/nordsecurity/uniffi-bindgen-cpp-test-runner:v0.3.0
steps:
- uses: actions/checkout@v3
- name: Build bindgen
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
./build_bindgen.sh
- name: Build bindings
shell: bash
env:
HOME: /root
run: |
source ~/.bashrc
./build_bindings.sh
- name: Run tests
shell: bash
env:
HOME: /root
run: |
source ~/.bashrc
./test_bindings.sh
- uses: actions/upload-artifact@v3
with:
name: scaffolding_lib
path: cpp-tests/build/libuniffi_fixtures.so
test-scaffolding-go:
runs-on: ubuntu-latest
container:
image: ghcr.io/nordsecurity/uniffi-bindgen-cpp-test-runner:v0.3.0
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Test scaffolding Go
shell: bash
env:
HOME: /root
run: |
source ~/.bashrc
./test_scaffolding_go.sh