-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 900 Bytes
/
main.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
name: Run experiment
on:
push:
pull_request:
workflow_dispatch:
inputs:
debug:
description: Interact via tmate
required: true
default: false
type: boolean
jobs:
main:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
include:
- os: ubuntu-latest
os-short: Ubuntu
- os: macos-latest
os-short: macOS
continue-on-error: true
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Run experiment on ${{ matrix.os-short }}
run: ./run-experiment
- name: Interact with ${{ matrix.os-short }} via tmate
if: (success() || failure()) && github.event_name == 'workflow_dispatch' && inputs.debug
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true