Skip to content

Commit 2e9ffc7

Browse files
committed
Merge branch 'xpack-development' into xpack
2 parents c657dc9 + 84be1be commit 2e9ffc7

File tree

235 files changed

+10581
-7762
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

235 files changed

+10581
-7762
lines changed

.github/FUNDING.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
44
patreon: # Replace with a single Patreon username
55
open_collective: # Replace with a single Open Collective username
6-
ko_fi: ilegeul # Replace with a single Ko-fi username
6+
ko_fi: ilegeul
77
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
88
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
99
liberapay: # Replace with a single Liberapay username
1010
issuehunt: # Replace with a single IssueHunt username
11-
otechie: # Replace with a single Otechie username
1211
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
12+
polar: # Replace with a single Polar username
13+
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
14+
thanks_dev: # Replace with a single thanks.dev username
1315
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/copilot-instructions.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copilot Instructions
2+
3+
## Project Overview
4+
5+
This is the **xPack GNU sed** project, part of the
6+
xPack Development Tools.
7+
8+
## Folder Structure
9+
10+
11+
- `/website`: Contains the Docusaurus web site
12+
13+
## Language and style
14+
15+
- Use British English spelling and grammar.
16+
- Use a professional tone.
17+
- Prefer folder to directory.

.github/workflows/build-darwin-arm64.yml

Lines changed: 45 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# -----------------------------------------------------------------------------
22
# DO NOT EDIT!
3-
# Generated from xpacks/@xpack-dev-tools/xbb-helper/templates/workflows/*.
3+
# 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

@@ -27,9 +27,6 @@
2727
# -----------------------------------------------------------------------------
2828

2929

30-
31-
32-
3330
name: 'Build xPack GNU sed darwin-arm64'
3431

3532
on:
@@ -69,27 +66,18 @@ on:
6966
default: 'xpack-development'
7067

7168
jobs:
72-
73-
74-
75-
76-
77-
78-
79-
80-
81-
8269
darwin-arm64-build:
8370
name: 'darwin-arm64 sed ${{github.event.inputs.version}} build'
8471
timeout-minutes: 2880 # 2 days
85-
86-
runs-on: [self-hosted, macos, apple]
87-
72+
runs-on: macos-15
73+
env:
74+
XBB_ENVIRONMENT_MACOSX_DEPLOYMENT_TARGET: '11.0'
8875
steps:
8976
- name: 'Show environment'
9077
run: |
9178
uname -a
9279
sw_vers
80+
df -gH /
9381
ls -lA /Library/Developer/CommandLineTools/SDKs || true
9482
ls -lA /Applications
9583
xcode-select --print-path
@@ -98,37 +86,55 @@ jobs:
9886
ls -l /Library/Developer/CommandLineTools/usr/include || true
9987
echo "pwd: $(pwd)"
10088
echo "whoami: $(whoami)"
101-
echo "node: $(node --version)"
102-
echo "npm: $(npm --version)"
10389
ls -lLA
10490
env | sort | grep -E '^[^ \t]+='
10591
106-
- name: 'Clean working area' # Mandatory for self-hosted runners.
92+
- name: 'Remove Homebrew'
93+
uses: xpack/remove-homebrew-action@v1
94+
95+
- name: 'Install Python packages'
10796
run: |
108-
chmod -Rf a+w * || true
109-
rm -rf * .git*
97+
pip3 install distlib
11098
111-
- name: 'Checkout project'
112-
uses: actions/checkout@v1 # v1 for old Git
99+
- name: 'Setup Node.js'
100+
uses: actions/setup-node@v4
113101
with:
114-
fetch-depth: 3
102+
node-version: '20'
103+
check-latest: true
115104

116105
- name: 'Install xpm'
117106
timeout-minutes: 1440
118107
run: |
119108
npm install --location=global xpm@${{github.event.inputs.xpm_version}}
120-
xpm --version
121109
122-
- name: 'Install project dependencies'
123-
timeout-minutes: 1440
124-
run: xpm install --loglevel ${{github.event.inputs.xpm_install_loglevel}} ${{github.event.inputs.xpm_install_options}} -C build-assets
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+
116+
- name: 'Clean working area' # Mandatory for self-hosted runners.
117+
run: |
118+
chmod -Rf a+w * || true
119+
rm -rf * .git*
120+
121+
- name: 'Checkout project'
122+
uses: actions/checkout@v1 # v1 for old Git
123+
with:
124+
fetch-depth: 3
125125

126126
- name: 'Build darwin-arm64 binaries'
127127
timeout-minutes: 1440
128128
run: |
129+
xpm install --loglevel ${{github.event.inputs.xpm_install_loglevel}} ${{github.event.inputs.xpm_install_options}} -C build-assets
129130
xpm install --config darwin-arm64 --loglevel ${{github.event.inputs.xpm_install_loglevel}} ${{github.event.inputs.xpm_install_options}} -C build-assets
130131
xpm run build --config darwin-arm64 -C build-assets
131132
133+
- name: 'Show results'
134+
run: |
135+
ls -l build-assets/build/darwin-arm64/application
136+
ls -l build-assets/build/darwin-arm64/deploy
137+
132138
- name: Upload platform artefacts
133139
uses: actions/upload-artifact@v4
134140
with:
@@ -156,24 +162,20 @@ jobs:
156162
tag: 'test'
157163
token: ${{secrets.PUBLISH_TOKEN}}
158164

159-
- name: 'Rename working area'
160-
# For just in case absolute paths remain unprocessed.
161-
run: mv -v build-assets/build build-assets/build-$(date -u +%Y%m%d-%H%M%S)
162-
163165
darwin-arm64-test:
164166
name: 'darwin-arm64 sed ${{github.event.inputs.version}} test'
165-
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-Readme.md
166-
runs-on: macos-14
167+
# https://github.com/actions/runner-images/blob/main/images/macos/macos-15-Readme.md
168+
runs-on: macos-15
167169
needs: [darwin-arm64-build]
168170

169171
steps:
170172
- name: 'Show environment'
171173
run: |
172174
uname -a
173175
sw_vers
176+
df -gH /
174177
ls -lA /Library/Developer/CommandLineTools/SDKs || true
175178
ls -lA /Applications
176-
sudo xcode-select --switch /Applications/Xcode_15.4.app
177179
xcode-select --print-path
178180
xcodebuild -version || true
179181
pkgutil --pkg-info=com.apple.pkg.CLTools_Executables || true
@@ -183,14 +185,17 @@ jobs:
183185
ls -lLA
184186
env | sort | grep -E '^[^ \t]+='
185187
188+
- name: 'Remove Homebrew'
189+
uses: xpack/remove-homebrew-action@v1
190+
186191
# https://github.com/actions/checkout
187192
- name: 'Checkout project'
188-
uses: actions/checkout@v4
193+
uses: actions/checkout@v5
189194
with:
190195
fetch-depth: 3
191196

192197
- name: 'Checkout helper ${{github.event.inputs.helper-git-ref}}'
193-
uses: actions/checkout@v4
198+
uses: actions/checkout@v5
194199
with:
195200
repository: xpack-dev-tools/xbb-helper-xpack
196201
path: build-assets/xpacks/@xpack-dev-tools/xbb-helper
@@ -199,6 +204,3 @@ jobs:
199204

200205
- name: 'Run ${{github.event.inputs.version}} native test'
201206
run: bash build-assets/scripts/test.sh --version ${{github.event.inputs.version}} --base-url pre-release
202-
203-
204-

.github/workflows/build-darwin-x64.yml

Lines changed: 45 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# -----------------------------------------------------------------------------
22
# DO NOT EDIT!
3-
# Generated from xpacks/@xpack-dev-tools/xbb-helper/templates/workflows/*.
3+
# 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

@@ -27,9 +27,6 @@
2727
# -----------------------------------------------------------------------------
2828

2929

30-
31-
32-
3330
name: 'Build xPack GNU sed darwin-x64'
3431

3532
on:
@@ -69,25 +66,18 @@ on:
6966
default: 'xpack-development'
7067

7168
jobs:
72-
73-
74-
75-
76-
77-
78-
79-
8069
darwin-x64-build:
8170
name: 'darwin-x64 sed ${{github.event.inputs.version}} build'
8271
timeout-minutes: 2880 # 2 days
83-
84-
runs-on: [self-hosted, macos, intel]
85-
72+
runs-on: macos-15-intel
73+
env:
74+
XBB_ENVIRONMENT_MACOSX_DEPLOYMENT_TARGET: '11.0'
8675
steps:
8776
- name: 'Show environment'
8877
run: |
8978
uname -a
9079
sw_vers
80+
df -gH /
9181
ls -lA /Library/Developer/CommandLineTools/SDKs || true
9282
ls -lA /Applications
9383
xcode-select --print-path
@@ -96,37 +86,55 @@ jobs:
9686
ls -l /Library/Developer/CommandLineTools/usr/include || true
9787
echo "pwd: $(pwd)"
9888
echo "whoami: $(whoami)"
99-
echo "node: $(node --version)"
100-
echo "npm: $(npm --version)"
10189
ls -lLA
10290
env | sort | grep -E '^[^ \t]+='
10391
104-
- name: 'Clean working area' # Mandatory for self-hosted runners.
92+
- name: 'Remove Homebrew'
93+
uses: xpack/remove-homebrew-action@v1
94+
95+
- name: 'Install Python packages'
10596
run: |
106-
chmod -Rf a+w * || true
107-
rm -rf * .git*
97+
pip3 install distlib
10898
109-
- name: 'Checkout project'
110-
uses: actions/checkout@v1 # v1 for old Git
99+
- name: 'Setup Node.js'
100+
uses: actions/setup-node@v4
111101
with:
112-
fetch-depth: 3
102+
node-version: '20'
103+
check-latest: true
113104

114105
- name: 'Install xpm'
115106
timeout-minutes: 1440
116107
run: |
117108
npm install --location=global xpm@${{github.event.inputs.xpm_version}}
118-
xpm --version
119109
120-
- name: 'Install project dependencies'
121-
timeout-minutes: 1440
122-
run: xpm install --loglevel ${{github.event.inputs.xpm_install_loglevel}} ${{github.event.inputs.xpm_install_options}} -C build-assets
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+
116+
- name: 'Clean working area' # Mandatory for self-hosted runners.
117+
run: |
118+
chmod -Rf a+w * || true
119+
rm -rf * .git*
120+
121+
- name: 'Checkout project'
122+
uses: actions/checkout@v1 # v1 for old Git
123+
with:
124+
fetch-depth: 3
123125

124126
- name: 'Build darwin-x64 binaries'
125127
timeout-minutes: 1440
126128
run: |
129+
xpm install --loglevel ${{github.event.inputs.xpm_install_loglevel}} ${{github.event.inputs.xpm_install_options}} -C build-assets
127130
xpm install --config darwin-x64 --loglevel ${{github.event.inputs.xpm_install_loglevel}} ${{github.event.inputs.xpm_install_options}} -C build-assets
128131
xpm run build --config darwin-x64 -C build-assets
129132
133+
- name: 'Show results'
134+
run: |
135+
ls -l build-assets/build/darwin-x64/application
136+
ls -l build-assets/build/darwin-x64/deploy
137+
130138
- name: Upload platform artefacts
131139
uses: actions/upload-artifact@v4
132140
with:
@@ -154,24 +162,20 @@ jobs:
154162
tag: 'test'
155163
token: ${{secrets.PUBLISH_TOKEN}}
156164

157-
- name: 'Rename working area'
158-
# For just in case absolute paths remain unprocessed.
159-
run: mv -v build-assets/build build-assets/build-$(date -u +%Y%m%d-%H%M%S)
160-
161165
darwin-x64-test:
162166
name: 'darwin-x64 sed ${{github.event.inputs.version}} test'
163-
# https://github.com/actions/runner-images/blob/main/images/macos/macos-13-Readme.md
164-
runs-on: macos-13
167+
# https://github.com/actions/runner-images/blob/main/images/macos/macos-15-Readme.md
168+
runs-on: macos-15-intel
165169
needs: [darwin-x64-build]
166170

167171
steps:
168172
- name: 'Show environment'
169173
run: |
170174
uname -a
171175
sw_vers
176+
df -gH /
172177
ls -lA /Library/Developer/CommandLineTools/SDKs || true
173178
ls -lA /Applications
174-
sudo xcode-select --switch /Applications/Xcode_14.2.app
175179
xcode-select --print-path
176180
xcodebuild -version || true
177181
pkgutil --pkg-info=com.apple.pkg.CLTools_Executables || true
@@ -181,14 +185,17 @@ jobs:
181185
ls -lLA
182186
env | sort | grep -E '^[^ \t]+='
183187
188+
- name: 'Remove Homebrew'
189+
uses: xpack/remove-homebrew-action@v1
190+
184191
# https://github.com/actions/checkout
185192
- name: 'Checkout project'
186-
uses: actions/checkout@v4
193+
uses: actions/checkout@v5
187194
with:
188195
fetch-depth: 3
189196

190197
- name: 'Checkout helper ${{github.event.inputs.helper-git-ref}}'
191-
uses: actions/checkout@v4
198+
uses: actions/checkout@v5
192199
with:
193200
repository: xpack-dev-tools/xbb-helper-xpack
194201
path: build-assets/xpacks/@xpack-dev-tools/xbb-helper
@@ -197,6 +204,3 @@ jobs:
197204

198205
- name: 'Run ${{github.event.inputs.version}} native test'
199206
run: bash build-assets/scripts/test.sh --version ${{github.event.inputs.version}} --base-url pre-release
200-
201-
202-

0 commit comments

Comments
 (0)