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