-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (59 loc) · 1.88 KB
/
ci.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
webotsVersion: [ R2023b, R2024a ]
include:
- webotsVersion: R2024a
webotsTag: nightly_26_7_2024
- webotsVersion: R2024a
webotsBaseUrl: https://github.com/DeepBlueRobotics/webots/releases/download/R2024a_DeepBlueSim_2024_07_28
runs-on: ${{ matrix.os }}
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Setup Webots
id: setupWebots
uses: ./
with:
webotsVersion: ${{ matrix.webotsVersion }}
webotsTag: ${{ matrix.webotsTag || '' }}
- name: Run Webots
run: $RUN_WEBOTS --sysinfo
shell: bash
- name: Display outputs
run: |
echo "RUN_WEBOTS: $RUN_WEBOTS"
echo "steps.setupWebots.outputs.bashCmd: ${{ steps.setupWebots.outputs.bashCmd }}"
echo "steps.setupWebots.outputs.home: ${{ steps.setupWebots.outputs.home }}"
echo "steps.setupWebots.outputs.binDir: ${{ steps.setupWebots.outputs.binDir }}"
echo "steps.setupWebots.outputs.bin: ${{ steps.setupWebots.outputs.bin }}"
echo "steps.setupWebots.outputs.cachePath: ${{ steps.setupWebots.outputs.cachePath }}"
shell: bash
release:
# Only release from the main branch
if: github.ref == 'refs/heads/main'
needs: test
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Compute next semantic version
id: version
uses: paulhatch/[email protected]
with:
branch: "main"
- name: Tag
run: git tag ${{ steps.version.outputs.version_tag }}
- name: Push
run: git push origin ${{ steps.version.outputs.version_tag }}