-
-
Notifications
You must be signed in to change notification settings - Fork 91
49 lines (43 loc) · 1.25 KB
/
test_build.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
name: '[🧪] Test build'
run-name: '[🧪] Test build on `${{ github.ref }}`'
on:
push:
branches:
- master
- dev
pull_request:
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os:
- ubuntu-22.04
- ubuntu-20.04
- macos-13
- macos-12
runs-on: ${{ matrix.os }}
name: '[🧪] Test Build on ${{ matrix.os }}'
steps:
- name: '[📥] checkout'
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: '[👷] run build script on git repository'
run: |
./build/build.sh --full --debug
- name: '[🔥] clean and remove git'
run: |
git clean -xdf
rm -rf .git
- name: '[👷] run build script on non-git directory'
run: |
./build/build.sh --full --debug
success:
needs: [build]
if: ${{ success() }}
name: '[🧪] Success'
runs-on: ubuntu-latest
steps:
- name: '[🥳] Success'
run: echo "🥳 Checks passed successfully!"