mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-18 20:37:56 +00:00
Merge pull request #2121 from bhundven/update_homebrew_prefix
Fix homebrew path
This commit is contained in:
commit
e8e849a2f6
20
.github/workflows/build-toolchains.yml
vendored
20
.github/workflows/build-toolchains.yml
vendored
@ -44,18 +44,18 @@ jobs:
|
||||
run: |
|
||||
cd ..
|
||||
rmdir crosstool-ng
|
||||
hdiutil create ${HOME}/Workspace.sparseimage -volname crosstool-ng -type SPARSE -size 20g -fs HFSX
|
||||
hdiutil mount ${HOME}/Workspace.sparseimage -mountroot /Users/runner/work/crosstool-ng
|
||||
hdiutil create "${HOME}/Workspace.sparseimage" -volname crosstool-ng -type SPARSE -size 20g -fs HFSX
|
||||
hdiutil mount "${HOME}/Workspace.sparseimage" -mountroot /Users/runner/work/crosstool-ng
|
||||
cd crosstool-ng
|
||||
- name: download ct-ng
|
||||
uses: actions/download-artifact@v3
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: crosstool.${{ matrix.host }}
|
||||
- name: extract ct-ng
|
||||
run: |
|
||||
tar -xf ct-ng.tar
|
||||
- name: download tarballs
|
||||
uses: actions/cache/restore@v3
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: src.tar
|
||||
key: src.tar-${{ hashFiles('.local/share/crosstool-ng/packages') }}-${{ hashFiles('.local/share/crosstool-ng/samples') }}
|
||||
@ -67,16 +67,16 @@ jobs:
|
||||
if: ${{ runner.os == 'Linux' }}
|
||||
run: |
|
||||
sudo apt-get install -y gperf help2man libtool-bin meson ninja-build
|
||||
echo "${{ github.workspace }}/.local/bin" >> $GITHUB_PATH
|
||||
echo "${{ github.workspace }}/.local/bin" >> "$GITHUB_PATH"
|
||||
- name: prereq macOS
|
||||
if: ${{ runner.os == 'macOS' }}
|
||||
run: |
|
||||
brew install autoconf automake bash binutils gawk gnu-sed \
|
||||
gnu-tar help2man make ncurses pkg-config
|
||||
echo "${{ github.workspace }}/.local/bin" >> $GITHUB_PATH
|
||||
echo "${{ github.workspace }}/.local/bin" >> "$GITHUB_PATH"
|
||||
- name: download x86_64-w64-mingw32.${{ matrix.host }} tarball
|
||||
if: ${{ inputs.canadian-cross }}
|
||||
uses: actions/download-artifact@v3
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: x86_64-w64-mingw32.${{ matrix.host }}.tar
|
||||
- name: install x86_64-w64-mingw32.${{ matrix.host }} toolchain
|
||||
@ -85,7 +85,7 @@ jobs:
|
||||
mkdir -p ${{ github.workspace }}/x86_64-w64-mingw32
|
||||
tar -C ${{ github.workspace }}/x86_64-w64-mingw32 \
|
||||
-xf x86_64-w64-mingw32.${{ matrix.host }}.tar
|
||||
echo "${{ github.workspace }}/x86_64-w64-mingw32/bin" >> $GITHUB_PATH
|
||||
echo "${{ github.workspace }}/x86_64-w64-mingw32/bin" >> "$GITHUB_PATH"
|
||||
- name: build ${{ matrix.sample }} for ${{ matrix.host }}
|
||||
run: |
|
||||
mkdir -p src
|
||||
@ -103,13 +103,13 @@ jobs:
|
||||
-cf ${{ matrix.sample }}.${{ matrix.host }}.tar .
|
||||
- name: upload ${{ matrix.sample }}.${{ matrix.host }} tarball
|
||||
if: ${{ matrix.sample == 'x86_64-w64-mingw32' }}
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ matrix.sample }}.${{ matrix.host }}.tar
|
||||
path: |
|
||||
${{ matrix.sample }}.${{ matrix.host }}.tar
|
||||
- name: upload log
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ matrix.sample }}.${{ matrix.host }}.log
|
||||
path: |
|
||||
|
@ -13,7 +13,7 @@ jobs:
|
||||
host: ["ubuntu-22.04", "macos-latest"]
|
||||
steps:
|
||||
- name: "clone"
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
- name: "prereq Linux"
|
||||
if: ${{ runner.os == 'Linux' }}
|
||||
run: |
|
||||
@ -26,22 +26,25 @@ jobs:
|
||||
- name: "build ct-ng"
|
||||
run: |
|
||||
if [ "$RUNNER_OS" == "macOS" ]; then
|
||||
export PATH="$PATH:/usr/local/opt/binutils/bin"
|
||||
export CPPFLAGS="-I/usr/local/opt/ncurses/include -I/usr/local/opt/gettext/include"
|
||||
export LDFLAGS="-L/usr/local/opt/ncurses/lib -L/usr/local/opt/gettext/lib"
|
||||
PATH="$PATH:$(brew --prefix)/opt/binutils/bin"
|
||||
export PATH
|
||||
CPPFLAGS="-I$(brew --prefix)/opt/ncurses/include -I$(brew --prefix)/opt/gettext/include"
|
||||
export CPPFLAGS
|
||||
LDFLAGS="-L$(brew --prefix)/opt/ncurses/lib -L$(brew --prefix)/opt/gettext/lib"
|
||||
export LDFLAGS
|
||||
fi
|
||||
./bootstrap
|
||||
./configure --prefix=$PWD/.local/
|
||||
./configure --prefix="$PWD/.local/"
|
||||
make
|
||||
make install
|
||||
tar -cf ct-ng.tar .local/
|
||||
- name: "upload ct-ng"
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: crosstool.${{ matrix.host }}
|
||||
path: ct-ng.tar
|
||||
- name: "upload config.log"
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: config.log.${{ matrix.host }}
|
||||
path: config.log
|
||||
@ -55,7 +58,7 @@ jobs:
|
||||
host: ["ubuntu-22.04"]
|
||||
steps:
|
||||
- name: "download ct-ng"
|
||||
uses: actions/download-artifact@v3
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: crosstool.${{ matrix.host }}
|
||||
- name: "extract ct-ng"
|
||||
@ -63,7 +66,7 @@ jobs:
|
||||
tar -xf ct-ng.tar
|
||||
- name: cache tarballs
|
||||
id: cache
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: src.tar
|
||||
key: src.tar-${{ hashFiles('.local/share/crosstool-ng/packages') }}-${{ hashFiles('.local/share/crosstool-ng/samples') }}
|
||||
@ -78,7 +81,7 @@ jobs:
|
||||
if: ${{ runner.os == 'Linux' }}
|
||||
run: |
|
||||
sudo apt-get install -y gperf help2man libtool-bin
|
||||
echo "$GITHUB_WORKSPACE/.local/bin" >> $GITHUB_PATH
|
||||
echo "$GITHUB_WORKSPACE/.local/bin" >> "$GITHUB_PATH"
|
||||
- name: "ct-ng source"
|
||||
run: |
|
||||
mkdir -p src
|
||||
|
Loading…
Reference in New Issue
Block a user