github: Rename the "get-versions" step to "prepare"
This commit is contained in:
1 parent
8d1d6f9947
commit
085653b6c8
1 file changed
+23
-23
+23
-23
@@ -14,7 +14,7 @@ jobs:
|
|||||||
# same version. This allows trusting builds without assertions enabled
|
# same version. This allows trusting builds without assertions enabled
|
||||||
# slightly more, when we know a separate build of the same version but with
|
# slightly more, when we know a separate build of the same version but with
|
||||||
# assertions enabled, has passed some amount of tests.
|
# assertions enabled, has passed some amount of tests.
|
||||||
get-versions:
|
prepare:
|
||||||
if: (github.event_name != 'schedule') || (github.repository == 'mstorsjo/llvm-mingw')
|
if: (github.event_name != 'schedule') || (github.repository == 'mstorsjo/llvm-mingw')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
@@ -34,14 +34,14 @@ jobs:
|
|||||||
# Build a cross compiler for Linux, targeting Windows.
|
# Build a cross compiler for Linux, targeting Windows.
|
||||||
linux:
|
linux:
|
||||||
if: (github.event_name != 'schedule') || (github.repository == 'mstorsjo/llvm-mingw')
|
if: (github.event_name != 'schedule') || (github.repository == 'mstorsjo/llvm-mingw')
|
||||||
needs: [get-versions]
|
needs: [prepare]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
LLVM_VERSION: ${{needs.get-versions.outputs.LLVM_VERSION}}
|
LLVM_VERSION: ${{needs.prepare.outputs.LLVM_VERSION}}
|
||||||
MINGW_W64_VERSION: ${{needs.get-versions.outputs.MINGW_W64_VERSION}}
|
MINGW_W64_VERSION: ${{needs.prepare.outputs.MINGW_W64_VERSION}}
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update && sudo apt-get install ninja-build
|
sudo apt-get update && sudo apt-get install ninja-build
|
||||||
./build-all.sh $(pwd)/install/llvm-mingw --disable-clang-tools-extra --disable-lldb
|
./build-all.sh $(pwd)/install/llvm-mingw --disable-clang-tools-extra --disable-lldb
|
||||||
@@ -64,14 +64,14 @@ jobs:
|
|||||||
# here in scheduled builds somewhat slower.
|
# here in scheduled builds somewhat slower.
|
||||||
linux-asserts:
|
linux-asserts:
|
||||||
if: (github.event_name == 'schedule') && (github.repository == 'mstorsjo/llvm-mingw')
|
if: (github.event_name == 'schedule') && (github.repository == 'mstorsjo/llvm-mingw')
|
||||||
needs: [get-versions]
|
needs: [prepare]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
LLVM_VERSION: ${{needs.get-versions.outputs.LLVM_VERSION}}
|
LLVM_VERSION: ${{needs.prepare.outputs.LLVM_VERSION}}
|
||||||
MINGW_W64_VERSION: ${{needs.get-versions.outputs.MINGW_W64_VERSION}}
|
MINGW_W64_VERSION: ${{needs.prepare.outputs.MINGW_W64_VERSION}}
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update && sudo apt-get install ninja-build
|
sudo apt-get update && sudo apt-get install ninja-build
|
||||||
./build-all.sh $(pwd)/install/llvm-mingw --disable-clang-tools-extra --disable-lldb --enable-asserts
|
./build-all.sh $(pwd)/install/llvm-mingw --disable-clang-tools-extra --disable-lldb --enable-asserts
|
||||||
@@ -88,14 +88,14 @@ jobs:
|
|||||||
# Build a cross compiler for macOS, targeting Windows.
|
# Build a cross compiler for macOS, targeting Windows.
|
||||||
macos:
|
macos:
|
||||||
if: (github.event_name != 'schedule') || (github.repository == 'mstorsjo/llvm-mingw')
|
if: (github.event_name != 'schedule') || (github.repository == 'mstorsjo/llvm-mingw')
|
||||||
needs: [get-versions]
|
needs: [prepare]
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
LLVM_VERSION: ${{needs.get-versions.outputs.LLVM_VERSION}}
|
LLVM_VERSION: ${{needs.prepare.outputs.LLVM_VERSION}}
|
||||||
MINGW_W64_VERSION: ${{needs.get-versions.outputs.MINGW_W64_VERSION}}
|
MINGW_W64_VERSION: ${{needs.prepare.outputs.MINGW_W64_VERSION}}
|
||||||
run: |
|
run: |
|
||||||
brew install ninja
|
brew install ninja
|
||||||
# Building with MACOS_REDIST=1 (building universal binaries) without
|
# Building with MACOS_REDIST=1 (building universal binaries) without
|
||||||
@@ -120,7 +120,7 @@ jobs:
|
|||||||
# these builds, but llvm-mingw's tests are run.
|
# these builds, but llvm-mingw's tests are run.
|
||||||
msys2:
|
msys2:
|
||||||
if: (github.event_name != 'schedule') || (github.repository == 'mstorsjo/llvm-mingw')
|
if: (github.event_name != 'schedule') || (github.repository == 'mstorsjo/llvm-mingw')
|
||||||
needs: [get-versions]
|
needs: [prepare]
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
@@ -146,8 +146,8 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
LLVM_VERSION: ${{needs.get-versions.outputs.LLVM_VERSION}}
|
LLVM_VERSION: ${{needs.prepare.outputs.LLVM_VERSION}}
|
||||||
MINGW_W64_VERSION: ${{needs.get-versions.outputs.MINGW_W64_VERSION}}
|
MINGW_W64_VERSION: ${{needs.prepare.outputs.MINGW_W64_VERSION}}
|
||||||
run: |
|
run: |
|
||||||
./build-all.sh $(pwd)/install/llvm-mingw --disable-clang-tools-extra --disable-lldb
|
./build-all.sh $(pwd)/install/llvm-mingw --disable-clang-tools-extra --disable-lldb
|
||||||
.github/workflows/store-version.sh install/llvm-mingw/versions.txt
|
.github/workflows/store-version.sh install/llvm-mingw/versions.txt
|
||||||
@@ -158,7 +158,7 @@ jobs:
|
|||||||
# architectures). The binaries built here match actual releases quite closely.
|
# architectures). The binaries built here match actual releases quite closely.
|
||||||
linux-cross:
|
linux-cross:
|
||||||
if: (github.event_name != 'schedule') || (github.repository == 'mstorsjo/llvm-mingw')
|
if: (github.event_name != 'schedule') || (github.repository == 'mstorsjo/llvm-mingw')
|
||||||
needs: [linux, get-versions]
|
needs: [linux, prepare]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@@ -181,9 +181,9 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
LLVM_VERSION: ${{needs.get-versions.outputs.LLVM_VERSION}}
|
LLVM_VERSION: ${{needs.prepare.outputs.LLVM_VERSION}}
|
||||||
MINGW_W64_VERSION: ${{needs.get-versions.outputs.MINGW_W64_VERSION}}
|
MINGW_W64_VERSION: ${{needs.prepare.outputs.MINGW_W64_VERSION}}
|
||||||
PYTHON_VERSION_MINGW: ${{needs.get-versions.outputs.PYTHON_VERSION_MINGW}}
|
PYTHON_VERSION_MINGW: ${{needs.prepare.outputs.PYTHON_VERSION_MINGW}}
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update && sudo apt-get install autoconf-archive ninja-build
|
sudo apt-get update && sudo apt-get install autoconf-archive ninja-build
|
||||||
./build-cross-tools.sh /opt/llvm-mingw $(pwd)/install/llvm-mingw-${{matrix.arch}} ${{matrix.arch}} --with-python
|
./build-cross-tools.sh /opt/llvm-mingw $(pwd)/install/llvm-mingw-${{matrix.arch}} ${{matrix.arch}} --with-python
|
||||||
@@ -249,7 +249,7 @@ jobs:
|
|||||||
# The libcxxabi and libunwind tests don't pass on the pinned 16.x branch,
|
# The libcxxabi and libunwind tests don't pass on the pinned 16.x branch,
|
||||||
# only on git main.
|
# only on git main.
|
||||||
if: false
|
if: false
|
||||||
needs: [linux-cross, get-versions]
|
needs: [linux-cross, prepare]
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@@ -272,7 +272,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Checkout llvm-project
|
- name: Checkout llvm-project
|
||||||
env:
|
env:
|
||||||
LLVM_VERSION: ${{needs.get-versions.outputs.LLVM_VERSION}}
|
LLVM_VERSION: ${{needs.prepare.outputs.LLVM_VERSION}}
|
||||||
run: |
|
run: |
|
||||||
bash -c "CHECKOUT_ONLY=1 ./build-llvm.sh"
|
bash -c "CHECKOUT_ONLY=1 ./build-llvm.sh"
|
||||||
- name: Build and test libcxx
|
- name: Build and test libcxx
|
||||||
@@ -304,7 +304,7 @@ jobs:
|
|||||||
test-openmp:
|
test-openmp:
|
||||||
# Only running these tests in scheduled builds.
|
# Only running these tests in scheduled builds.
|
||||||
if: (github.event_name == 'schedule') && (github.repository == 'mstorsjo/llvm-mingw')
|
if: (github.event_name == 'schedule') && (github.repository == 'mstorsjo/llvm-mingw')
|
||||||
needs: [linux-cross, get-versions]
|
needs: [linux-cross, prepare]
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@@ -327,7 +327,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Checkout llvm-project
|
- name: Checkout llvm-project
|
||||||
env:
|
env:
|
||||||
LLVM_VERSION: ${{needs.get-versions.outputs.LLVM_VERSION}}
|
LLVM_VERSION: ${{needs.prepare.outputs.LLVM_VERSION}}
|
||||||
run: |
|
run: |
|
||||||
bash -c "CHECKOUT_ONLY=1 ./build-llvm.sh"
|
bash -c "CHECKOUT_ONLY=1 ./build-llvm.sh"
|
||||||
- name: Build test executables
|
- name: Build test executables
|
||||||
@@ -366,7 +366,7 @@ jobs:
|
|||||||
# These tests don't pass on the pinned 16.x branch, but only on latest
|
# These tests don't pass on the pinned 16.x branch, but only on latest
|
||||||
# git main - thus only run it for scheduled jobs.
|
# git main - thus only run it for scheduled jobs.
|
||||||
if: (github.event_name == 'schedule') && (github.repository == 'mstorsjo/llvm-mingw')
|
if: (github.event_name == 'schedule') && (github.repository == 'mstorsjo/llvm-mingw')
|
||||||
needs: [linux-cross, get-versions]
|
needs: [linux-cross, prepare]
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@@ -389,7 +389,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Checkout llvm-project
|
- name: Checkout llvm-project
|
||||||
env:
|
env:
|
||||||
LLVM_VERSION: ${{needs.get-versions.outputs.LLVM_VERSION}}
|
LLVM_VERSION: ${{needs.prepare.outputs.LLVM_VERSION}}
|
||||||
run: |
|
run: |
|
||||||
git config --global core.autocrlf false
|
git config --global core.autocrlf false
|
||||||
bash -c "CHECKOUT_ONLY=1 ./build-llvm.sh"
|
bash -c "CHECKOUT_ONLY=1 ./build-llvm.sh"
|
||||||
|
|||||||
Reference in new issue
Block a user