forked from LuaJIT/LuaJIT
-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (81 loc) · 2.19 KB
/
Copy pathci.yml
File metadata and controls
87 lines (81 loc) · 2.19 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: CI
on:
push:
branches:
- "**"
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
linux:
name: Linux x86_64 build/run
runs-on: ubuntu-24.04
env:
LUA: luajit
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install build tools
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
build-essential luajit
- name: Build, run, and test Linux platform
run: |
tools/ci/platform_build.sh linux-x86_64
macos:
name: macOS x86_64 build/run
runs-on: macos-26-intel
env:
LUA: luajit
MACOSX_DEPLOYMENT_TARGET: "13.0"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install build tools
run: |
if ! command -v luajit >/dev/null 2>&1; then
brew install luajit
fi
- name: Build, run, and test macOS platform
run: |
tools/ci/platform_build.sh macos-x86_64
windows-ucrt:
name: Windows x86_64 UCRT build/run
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: Allow sparse checkout around reserved benchmark paths
shell: pwsh
run: |
git config --global core.protectNTFS false
- uses: actions/checkout@v4
with:
fetch-depth: 0
sparse-checkout-cone-mode: false
# Git for Windows refuses to materialize paths with reserved DOS
# device names. The benchmark-only aux/ tree is not needed by the
# native Windows platform build/run smoke, so exclude it at checkout
# while keeping the rest of the source tree complete.
sparse-checkout: |
/*
!/aux/
- uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
update: true
install: >-
git
make
mingw-w64-ucrt-x86_64-gcc
- name: Build, run, and test Windows UCRT platform
run: |
tools/ci/platform_build.sh windows-x86_64-ucrt