forked from R-macos/recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.12 KB
/
build.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
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
inputs:
recipes:
description: "Which recipes to build, takes precedent"
all:
description: "Build all recipes"
type: boolean
default: false
permissions:
contents: read
name: Cook recipes
jobs:
cook:
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} build
env:
CC: clang
CXX: clang++
OBJC: clang
OBJCXX: clang++
strategy:
matrix:
os: [ macos-13, macos-latest ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # default is 1
ref: "${{ github.ref }}"
- name: build libs
shell: bash
run: ./build.sh ${{ inputs.recipes }}
- name: Collect
if: success() && (inputs.recipes || steps.find.outputs.recipes)
run: mkdir deploy && cp -p build/*-darwin*.tar.gz deploy/
- name: Upload
if: success() && (inputs.recipes || steps.find.outputs.recipes)
uses: actions/upload-artifact@master
with:
name: recipes-build
path: deploy