-
Notifications
You must be signed in to change notification settings - Fork 26
47 lines (47 loc) · 1.17 KB
/
macos.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
name: macOS
on:
push:
branches:
- master
- fluent-package-lts-v5
pull_request:
jobs:
build:
name: Build
timeout-minutes: 30
strategy:
fail-fast: false
runs-on: macos-latest
steps:
- uses: actions/checkout@master
- name: Install cmake
run: |
brew install cmake
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- name: Install gems
run: |
gem install bundler builder
- name: Build
run: |
sudo mkdir /opt/fluent
sudo chown $(whoami) /opt/fluent
rm -rf fluent/staging
rake dmg:selfbuild PATH="$HOME/.cargo/bin:$PATH"
- name: Upload fluent-package dmg
uses: actions/upload-artifact@master
with:
name: packages-macos
path: fluent-package/dmg/*.dmg
test:
name: Test
needs: build
runs-on: macos-latest
steps:
- uses: actions/checkout@master
- uses: actions/download-artifact@v4
with:
name: packages-macos
- name: Run test
run: fluent-package/dmg/install-test.sh *.dmg