Skip to content

Commit

Permalink
WIP: github: Set a git user identity, for applying patches
Browse files Browse the repository at this point in the history
  • Loading branch information
mstorsjo committed Dec 6, 2023
1 parent 7bfeef0 commit 893c40e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ jobs:
TAG: ${{needs.prepare.outputs.TAG}}
run: |
sudo apt-get update && sudo apt-get install ninja-build
git config --global user.name "LLVM MinGW"
git config --global user.email root@localhost
# Skip dynamic library dependencies that might make it harder to
# run the binaries on other distros (and that have little use within
# llvm-mingw).
Expand Down Expand Up @@ -99,6 +101,8 @@ jobs:
MINGW_W64_VERSION: ${{needs.prepare.outputs.MINGW_W64_VERSION}}
run: |
sudo apt-get update && sudo apt-get install ninja-build g++-aarch64-linux-gnu
git config --global user.name "LLVM MinGW"
git config --global user.email root@localhost
./build-all.sh $(pwd)/install/llvm-mingw --disable-clang-tools-extra --no-runtimes --host=aarch64-linux-gnu
.github/workflows/store-version.sh install/llvm-mingw/versions.txt
- uses: actions/download-artifact@v3
Expand Down Expand Up @@ -151,6 +155,8 @@ jobs:
MINGW_W64_VERSION: ${{needs.prepare.outputs.MINGW_W64_VERSION}}
run: |
sudo apt-get update && sudo apt-get install ninja-build
git config --global user.name "LLVM MinGW"
git config --global user.email root@localhost
# Skip dynamic library dependencies that might make it harder to
# run the binaries on other distros (and that have little use within
# llvm-mingw).
Expand Down Expand Up @@ -179,6 +185,8 @@ jobs:
TAG: ${{needs.prepare.outputs.TAG}}
run: |
brew install ninja
git config --global user.name "LLVM MinGW"
git config --global user.email root@localhost
# Disable zstd and python. Both are available on the runners, but
# installed with homebrew, and only available in the native (x86_64)
# form. Therefore, autodetection will pick them up, but linking
Expand Down Expand Up @@ -232,6 +240,8 @@ jobs:
LLVM_VERSION: ${{needs.prepare.outputs.LLVM_VERSION}}
MINGW_W64_VERSION: ${{needs.prepare.outputs.MINGW_W64_VERSION}}
run: |
git config --global user.name "LLVM MinGW"
git config --global user.email root@localhost
./build-all.sh $(pwd)/install/llvm-mingw --disable-clang-tools-extra --disable-lldb
.github/workflows/store-version.sh install/llvm-mingw/versions.txt
./run-tests.sh $(pwd)/install/llvm-mingw
Expand Down Expand Up @@ -270,6 +280,8 @@ jobs:
TAG: ${{needs.prepare.outputs.TAG}}
run: |
sudo apt-get update && sudo apt-get install autoconf-archive ninja-build
git config --global user.name "LLVM MinGW"
git config --global user.email root@localhost
./build-cross-tools.sh /opt/llvm-mingw $(pwd)/install/llvm-mingw ${{matrix.arch}} --with-python
.github/workflows/store-version.sh install/llvm-mingw/versions.txt
cd install
Expand Down Expand Up @@ -361,6 +373,8 @@ jobs:
env:
LLVM_VERSION: ${{needs.prepare.outputs.LLVM_VERSION}}
run: |
git config --global user.name "LLVM MinGW"
git config --global user.email root@localhost
bash -c "CHECKOUT_ONLY=1 ./build-llvm.sh"
- name: Build and test libcxx
run: |
Expand Down Expand Up @@ -421,6 +435,8 @@ jobs:
env:
LLVM_VERSION: ${{needs.prepare.outputs.LLVM_VERSION}}
run: |
git config --global user.name "LLVM MinGW"
git config --global user.email root@localhost
bash -c "CHECKOUT_ONLY=1 ./build-llvm.sh"
- name: Build test executables
run: |
Expand Down Expand Up @@ -486,6 +502,8 @@ jobs:
LLVM_VERSION: ${{needs.prepare.outputs.LLVM_VERSION}}
run: |
git config --global core.autocrlf false
git config --global user.name "LLVM MinGW"
git config --global user.email root@localhost
bash -c "CHECKOUT_ONLY=1 ./build-llvm.sh"
- name: Build test executables
run: |
Expand Down

0 comments on commit 893c40e

Please sign in to comment.