-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 930 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Test
on:
push:
branches:
- main
- devel
pull_request:
workflow_dispatch:
jobs:
build:
strategy:
matrix:
nim-version: [devel, '2.0.0']
backend: [c]
runs-on: ubuntu-latest
container:
image: ros:humble-ros-base
steps:
- run: |
apt-get update -y
apt-get install -y wget gcc ros-humble-rcl ros-humble-builtin-interfaces ros-humble-std-srvs
wget -O /tmp/choosenim-init.sh https://nim-lang.org/choosenim/init.sh
sh /tmp/choosenim-init.sh -y
echo ~/.nimble/bin >> $GITHUB_PATH
~/.nimble/bin/choosenim ${{ matrix.nim-version }}
- uses: actions/checkout@v3
with:
submodules: recursive
- run: git config --global --add safe.directory /__w/rclnim/rclnim
- run: nimble install -y --verbose
- run: source /opt/ros/humble/setup.bash && nimble test${{ matrix.backend }}
shell: bash