Skip to content

Commit 4b65e42

Browse files
committed
Replace gnu-bash-wrapper with kibposix and update build workflow
Removed the gnu-bash-wrapper package and replaced it with the new kibposix package, including all relevant files and documentation. Updated neofetch dependencies to use bash instead of gnu-bash-wrapper. Added a GitHub Actions workflow to build Bash for Windows using Cygwin and commit the compiled binaries to a dedicated branch.
1 parent 6a30a5c commit 4b65e42

File tree

20 files changed

+105
-161
lines changed

20 files changed

+105
-161
lines changed

.github/workflows/build.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Build Bash on Windows (Cygwin)
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
build-bash-windows:
11+
runs-on: windows-latest
12+
13+
steps:
14+
# Checkout repository
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
# Configure git for line endings
19+
- name: Configure Git
20+
run: git config --global core.autocrlf input
21+
22+
# Install Cygwin with required packages
23+
- name: Install Cygwin
24+
uses: cygwin/cygwin-install-action@master
25+
with:
26+
packages: "gcc-core gcc-g++ make autoconf automake tar curl"
27+
28+
# Download Bash source
29+
- name: Download Bash source
30+
shell: bash
31+
run: |
32+
curl -L -O https://ftp.gnu.org/gnu/bash/bash-5.1.tar.gz
33+
tar xzf bash-5.1.tar.gz
34+
35+
# Compile and install Bash directly into repo folder
36+
- name: Compile and install Bash
37+
shell: bash
38+
run: |
39+
DEST="$GITHUB_WORKSPACE/packages-kib11/bash/files"
40+
mkdir -p "$DEST"
41+
cd bash-5.1
42+
./configure --prefix="$DEST"
43+
make
44+
make install
45+
46+
# Commit compiled Bash to a branch, overwriting if exists
47+
- name: Commit compiled Bash to build/bash
48+
run: |
49+
git config user.name "github-actions"
50+
git config user.email "[email protected]"
51+
52+
# Fetch remote branch if it exists
53+
git fetch origin build/bash || echo "Branch doesn't exist yet"
54+
55+
# Create or reset local branch
56+
git checkout -B build/bash origin/build/bash || git checkout -B build/bash
57+
58+
# Add compiled files
59+
git add packages-kib11/bash/files
60+
61+
# Commit changes
62+
git commit -m "Update compiled Bash for Windows [skip ci]" || echo "No changes to commit"
63+
64+
# Push branch, force update if necessary
65+
git push -u origin build/bash --force
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+

packages-kib11/gnu-bash-wrapper/DESCRIPTION.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages-kib11/gnu-bash-wrapper/INSTALL.sh

Lines changed: 0 additions & 57 deletions
This file was deleted.

packages-kib11/gnu-bash-wrapper/LICENSE.txt

Whitespace-only changes.

packages-kib11/gnu-bash-wrapper/MAXVER.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages-kib11/gnu-bash-wrapper/README.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

packages-kib11/gnu-bash-wrapper/UNINSTALL.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages-kib11/gnu-bash-wrapper/VERSION.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages-kib11/gnu-bash-wrapper/files/file-copy.bat

Lines changed: 0 additions & 18 deletions
This file was deleted.

packages-kib11/gnu-bash-wrapper/files/gnu-bash-wrapper.bat

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)