-
Notifications
You must be signed in to change notification settings - Fork 8
94 lines (78 loc) · 2.19 KB
/
build2.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Build and release
on:
push:
# branches-ignore:
# - '**'
###############################################
jobs:
build_posix:
name: '${{ matrix.name }}'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: macos-14
name: "MacOS 14 arm64 clang"
- os: macos-13
name: "MacOS 13 x64 clang"
steps:
- uses: actions/checkout@v4
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Show build env versions
shell: bash
run: |
set -eux
clang --version
xcodebuild -version
- name: Download deplibs
uses: ./build_scripts/download_deplibs
with:
basedir: ${{ github.workspace }}/target
- name: Download external packages
uses: ./build_scripts/download_extpkgs
with:
basedir: ${{ github.workspace }}/target
- name: Build libcuemol2
uses: ./build_scripts/build_libcuemol2_posix
with:
basedir: ${{ github.workspace }}/target
- name: Build cuetty
uses: ./build_scripts/build_cuetty_posix
with:
basedir: ${{ github.workspace }}/target
- name: Check cuetty run
shell: bash
run: |
set -eux
BASEDIR=${{ github.workspace }}/target
ls -la $BASEDIR/cuemol2/bin/cuetty
$BASEDIR/cuemol2/bin/cuetty
- name: Build UXP GUI
id: build-artifact
uses: ./build_scripts/build_uxpgui_posix
with:
basedir: ${{ github.workspace }}/target
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: cuemol2_${{ runner.os }}_${{ runner.arch }}
path: ${{ steps.build-artifact.outputs.artifact-path }}
###############################################
release_build:
needs: [build_posix]
runs-on: ubuntu-latest
steps:
- name: Download All Artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true
- run: |
ls -lR
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: artifacts/*