33# Automatically generated from npm-packages-helper/templates/*.
44#
55# This file is part of the xPack project (http://xpack.github.io).
6- # Copyright (c) 2021 Liviu Ionescu. All rights reserved.
6+ # Copyright (c) 2021-2025 Liviu Ionescu. All rights reserved.
77#
88# Permission to use, copy, modify, and/or distribute this software
99# for any purpose is hereby granted, under the terms of the MIT license.
1010#
1111# If a copy of the license was not distributed with this file, it can
12- # be obtained from https://opensource.org/licenses/MIT .
12+ # be obtained from https://opensource.org/licenses/mit .
1313#
1414# -----------------------------------------------------------------------------
1515
7777 run : |
7878 uname -a
7979 sw_vers
80+ df -gH /
8081 ls -lA /Library/Developer/CommandLineTools/SDKs || true
8182 ls -lA /Applications
8283 xcode-select --print-path
@@ -85,11 +86,33 @@ jobs:
8586 ls -l /Library/Developer/CommandLineTools/usr/include || true
8687 echo "pwd: $(pwd)"
8788 echo "whoami: $(whoami)"
88- echo "node: $(node --version)"
89- echo "npm: $(npm --version)"
9089 ls -lLA
9190 env | sort | grep -E '^[^ \t]+='
9291
92+ - name : ' Remove Homebrew'
93+ uses : xpack/remove-homebrew-action@v1
94+
95+ - name : ' Install Python packages'
96+ run : |
97+ pip3 install distlib
98+
99+ - name : ' Setup Node.js'
100+ uses : actions/setup-node@v4
101+ with :
102+ node-version : ' 20'
103+ check-latest : true
104+
105+ - name : ' Install xpm'
106+ timeout-minutes : 1440
107+ run : |
108+ npm install --location=global xpm@${{github.event.inputs.xpm_version}}
109+
110+ - name : ' Verify Node.js, npm and xpm'
111+ run : |
112+ echo "$(which node): $(node --version)"
113+ echo "$(which npm): $(npm --version)"
114+ echo "$(which xpm): $(xpm --version)"
115+
93116 - name : ' Clean working area' # Mandatory for self-hosted runners.
94117 run : |
95118 chmod -Rf a+w * || true
@@ -100,18 +123,15 @@ jobs:
100123 with :
101124 fetch-depth : 3
102125
103- - name : ' Install xpm'
104- timeout-minutes : 1440
105- run : |
106- npm install --location=global xpm@${{github.event.inputs.xpm_version}}
107- xpm --version
108-
109126 - name : ' Build darwin-x64 binaries'
110127 timeout-minutes : 1440
111128 run : |
112129 xpm install --loglevel ${{github.event.inputs.xpm_install_loglevel}} ${{github.event.inputs.xpm_install_options}} -C build-assets
113130 xpm install --config darwin-x64 --loglevel ${{github.event.inputs.xpm_install_loglevel}} ${{github.event.inputs.xpm_install_options}} -C build-assets
114131 xpm run build --config darwin-x64 -C build-assets
132+
133+ - name : ' Show results'
134+ run : |
115135 ls -l build-assets/build/darwin-x64/application
116136 ls -l build-assets/build/darwin-x64/deploy
117137
@@ -148,18 +168,19 @@ jobs:
148168
149169 darwin-x64-test :
150170 name : ' darwin-x64 flex ${{github.event.inputs.version}} test'
151- # https://github.com/actions/runner-images/blob/main/images/macos/macos-13 -Readme.md
152- runs-on : macos-13
171+ # https://github.com/actions/runner-images/blob/main/images/macos/macos-15 -Readme.md
172+ runs-on : macos-15-intel
153173 needs : [darwin-x64-build]
154174
155175 steps :
156176 - name : ' Show environment'
157177 run : |
158178 uname -a
159179 sw_vers
180+ df -gH /
160181 ls -lA /Library/Developer/CommandLineTools/SDKs || true
161182 ls -lA /Applications
162- sudo xcode-select --switch /Applications/Xcode_14.2 .app
183+ sudo xcode-select --switch /Applications/Xcode_16.4 .app
163184 xcode-select --print-path
164185 xcodebuild -version || true
165186 pkgutil --pkg-info=com.apple.pkg.CLTools_Executables || true
@@ -169,14 +190,17 @@ jobs:
169190 ls -lLA
170191 env | sort | grep -E '^[^ \t]+='
171192
193+ - name : ' Remove Homebrew'
194+ uses : xpack/remove-homebrew-action@v1
195+
172196 # https://github.com/actions/checkout
173197 - name : ' Checkout project'
174- uses : actions/checkout@v4
198+ uses : actions/checkout@v5
175199 with :
176200 fetch-depth : 3
177201
178202 - name : ' Checkout helper ${{github.event.inputs.helper-git-ref}}'
179- uses : actions/checkout@v4
203+ uses : actions/checkout@v5
180204 with :
181205 repository : xpack-dev-tools/xbb-helper-xpack
182206 path : build-assets/xpacks/@xpack-dev-tools/xbb-helper
0 commit comments