Skip to content

Commit

Permalink
Github Actions to build release_11x and release_12x
Browse files Browse the repository at this point in the history
release_100 is still built as it was.
Artifacts names include the branch name.
  • Loading branch information
michalpasztamobica authored and bryanpkc committed Apr 19, 2021
1 parent 8eaf5ef commit d4e2d22
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/pre-compile_llvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Pre-compile llvm

on:
push:
branches: [ release_100 ]
branches: [ release_100, release_11x, release_12x ]

jobs:
build:
Expand Down Expand Up @@ -51,13 +51,17 @@ jobs:
${{ matrix.cc }}-${{ matrix.version }} --version
${{ matrix.cpp }}-${{ matrix.version }} --version
- name: Extract branch name
run: echo "::set-output name=branch::${GITHUB_REF#refs/heads/}"
id: extract_branch

- name: Build llvm
run: |
# exit the llvm dir, so the path is the same on subsequent projects
cd ../..
rm -rf classic-flang-llvm-project
# clone manually, because checkout does not allow exiting llvm dir
git clone --depth 1 --single-branch --branch release_100 https://github.com/flang-compiler/classic-flang-llvm-project.git
git clone --depth 1 --single-branch --branch ${{ steps.extract_branch.outputs.branch }} https://github.com/flang-compiler/classic-flang-llvm-project.git
cd classic-flang-llvm-project
# After build place the artifacts in classic-flang-llvm-project/classic-flang-llvm-project, so Upload can find them.
mkdir classic-flang-llvm-project
Expand All @@ -82,5 +86,5 @@ jobs:
- name: Upload llvm
uses: actions/upload-artifact@v2
with:
name: llvm_build_${{ matrix.target }}_${{ matrix.cc }}_${{ matrix.version }}
name: llvm_build_${{ matrix.target }}_${{ matrix.cc }}_${{ matrix.version }}_${{ steps.extract_branch.outputs.branch }}
path: llvm_build.tar.gz

0 comments on commit d4e2d22

Please sign in to comment.