-
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.2 KB
/
ci.yml
File metadata and controls
54 lines (45 loc) · 1.2 KB
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
name: CI
on:
push:
pull_request:
schedule:
- cron: '0 2 * * *' # run at 2 AM UTC
workflow_dispatch:
inputs:
debug:
description: 'enter remote debug environment'
required: true
default: "false"
jobs:
build:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
flavor: [community, beta]
arch: [X86_32_GCC8, x86_64-linux-gnu]
steps:
- uses: actions/checkout@v6
- name: install dependencies
run: |
if [[ ! "${{ matrix.arch }}" =~ "64" ]]; then
sudo dpkg --add-architecture i386
sudo dpkg --print-foreign-architectures
fi
sudo apt-get -qq update || true
- name: set timezone to Europe/Berlin
run: |
sudo timedatectl set-timezone Europe/Berlin
date
- uses: actions/setup-node@v6
with:
node-version: '12.x'
- name: install OCCU
run: |
sudo FLAVOR=${{ matrix.flavor }} ARCH=${{ matrix.arch }} ./install.sh
- name: remote debug tmate session
uses: mxschmitt/action-tmate@v3
if: github.event.inputs.debug == 'true'
- name: run OCCU test
run: |
sudo FLAVOR=${{ matrix.flavor }} ./run.sh