-
Notifications
You must be signed in to change notification settings - Fork 25
79 lines (75 loc) · 2.22 KB
/
llvm.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
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
name: LLVM Weekly
# Compile LLVM weekly or on demand
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ${{ matrix.config.os }}
env: ${{ matrix.config.env }}
strategy:
fail-fast: false
matrix:
config:
- {
os: "ubuntu-20.04",
arch: "amd64",
env: {},
}
- {
os: "windows-2019",
arch: "amd64",
env: {},
}
- {
os: "macos-12",
arch: "amd64",
env: {},
}
- {
os: "macos-14",
arch: "aarch64",
env: {},
}
- {
os: "macos-14",
arch: "universal",
env: {
ARCHFLAGS: "-arch arm64 -arch x86_64"
}
}
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Linux - Install build dependencies, ccache, ninja
run: sudo apt-get install -y ccache ninja-build
if: ${{ matrix.config.os == 'ubuntu-20.04' }}
- name: Windows - Install build dependencies, sccache, ninja
run: choco install --accept-license -y sccache ninja
if: ${{ matrix.config.os == 'windows-2019' }}
- name: MacOS - Install build dependencies, ccache, ninja
run: brew install ccache ninja
if: ${{ matrix.config.os == 'macos-12' }}
- name: MacOS - Install build dependencies, ccache, ninja
run: brew install ccache ninja
if: ${{ matrix.config.os == 'macos-14' }}
- name: Windows - Install LLVM 13.0.1
run: choco install llvm --version=13.0.1 --allow-downgrade
if: ${{ matrix.config.os == 'windows-2019' }}
- name: "Build and Package LLVM"
run: ./build.ps1 -t package-llvm
shell: pwsh
- name: Artifacts
uses: actions/upload-artifact@v4
with:
name: artifacts-${{ matrix.config.os }}-${{ matrix.config.arch }}
if-no-files-found: error
path: |
target/**/*.zip
target/**/*.tar.gz
target/**/*.rpm
target/**/*.deb