-
Notifications
You must be signed in to change notification settings - Fork 15
89 lines (79 loc) · 2.19 KB
/
Copy pathmacos.yaml
File metadata and controls
89 lines (79 loc) · 2.19 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
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
name: macos
on:
pull_request:
types: [ opened, synchronize, reopened, closed ]
paths-ignore:
- .github/workflows/windows.yaml
- .github/workflows/ubuntu.yml
- .github/workflows/ubuntu-legacy.yml
- .github/workflows/fedora.yml
- '**/*.md'
release:
types: [ published, created, edited ]
workflow_dispatch:
schedule:
# daily
- cron: '0 0 * * *'
jobs:
build-matrix:
if: "!contains(github.event.pull_request.labels.*.name, 'ci: skip macos')"
runs-on: ubuntu-latest
outputs:
llvm-versions: ${{ steps.assemble-matrix.outputs.llvm-versions }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Assemble build matrix
id: assemble-matrix
uses: ./.github/actions/build-matrix
run:
needs: build-matrix
env:
NONINTERACTIVE: 1
HOMEBREW_NO_AUTO_UPDATE: 1
strategy:
fail-fast: false
matrix:
os: [ macos-14, macos-15 ]
llvm: ${{ fromJSON(needs.build-matrix.outputs.llvm-versions) }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Check Environment
run: |
echo "Running on macOS version: $(sw_vers -productVersion)"
echo "Running on architecture: $(uname -m)"
echo "Current directory: $(pwd)"
echo "Environment variables:"
env
- name: Brew fixup
run: |
brew upgrade |true
brew cleanup |true
brew doctor |true
ruby -v
- name: Create workspace
shell: bash
env:
CI: true
GITHUB_ACTIONS: true
run: |
env
cd $GITHUB_WORKSPACE
pwd; ls -la
PREFER_LLVM=${{ matrix.llvm }} ./flutter_workspace.py
cat ./setup_env.sh
- name: Test workspace
shell: bash
env:
CI: true
GITHUB_ACTIONS: true
run: |
env
cd $GITHUB_WORKSPACE
pwd; ls -la
. ./setup_env.sh
dart --version