-
Notifications
You must be signed in to change notification settings - Fork 18
54 lines (43 loc) · 1.05 KB
/
ubuntu.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
name: ubuntu
on:
workflow_dispatch:
push:
paths:
- '.github/workflows/ubuntu.yml'
- 'tests/**'
- '**/*.lua'
pull_request:
paths:
- '.github/workflows/ubuntu.yml'
- 'tests/**'
- '**/*.lua'
jobs:
ubuntu:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: checkout premake5
uses: actions/checkout@v3
with:
repository: premake/premake-core
path: .bins/premake-build
- name: Build premake5
run: |
cd .bins/premake-build
make -f Bootstrap.mak linux CONFIG=release
cp bin/release/premake5 ../
cd ..
rm -Rf premake-build
- name: apt-get update
run: sudo apt-get update -y
- name: apt-get install ninja-build
run: |
sudo apt-get install -y ninja-build
- name: Versions
run: |
python --version
.bins/premake5 --version
ninja --version
- name: test projects
run: cd tests && PATH=$PATH:`pwd`/../.bins python run_tests.py