-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (54 loc) · 1.64 KB
/
release.yml
File metadata and controls
54 lines (54 loc) · 1.64 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: Release Builds
on: push
env:
LLVM_VERSION: "22.1.2"
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: "ubuntu-22.04"
LLVM_TARGETS_TO_BUILD: "X86"
- os: "ubuntu-22.04"
LLVM_TARGETS_TO_BUILD: "X86"
LLVM_USE_SANITIZER: Thread
BUILD_TAG: "_tsan"
- os: "ubuntu-22.04-arm"
LLVM_TARGETS_TO_BUILD: "AArch64"
- os: "macos-14"
LLVM_TARGETS_TO_BUILD: "AArch64"
- os: "windows-2022"
LLVM_TARGETS_TO_BUILD: "X86"
- os: "windows-11-arm"
LLVM_TARGETS_TO_BUILD: "AArch64"
permissions:
contents: write
env:
LLVM_TARGETS_TO_BUILD: ${{ matrix.LLVM_TARGETS_TO_BUILD }}
LLVM_USE_SANITIZER: ${{ matrix.LLVM_USE_SANITIZER }}
BUILD_TAG: ${{ matrix.BUILD_TAG }}
steps:
- uses: spatial-model-editor/setup-ci@2026.03.27
with:
cache_id: ${{ matrix.BUILD_TAG }}
- uses: actions/checkout@v6
- name: Build script
if: runner.os != 'Windows'
run: ./build.sh
- name: Build script
if: runner.os == 'Windows'
run: ./build.ps1
- name: Upload binaries to release if commit is tagged
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./artefacts/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true