Skip to content

Commit

Permalink
fix build system (#52)
Browse files Browse the repository at this point in the history
* enable builds on this branch

* macos install gcc explicitly

* debug macos path

* macos debug PATH

* upgrade gcc to the current macos version

* remove debug

* Make upload artifact name unique

* remove bindir from artifact name

* upgrade actions/download-artifact

* debug

* debug

* nvm

* download all artifacts instead of named ones

* Use glob expression when uploading

* upgrade upload-to-github-release plugin

* Try different upload plugin which uses streams, otherwise file is too

big

* Fix build system :: p2 :: Workaround 2G limit (#1)

* cleanup

* Delete all files over 2G before making release

* yaml
  • Loading branch information
colinsullivan authored Dec 17, 2024
1 parent a3ea0d2 commit 46b8640
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/clang-tools-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: clang-tools-static-amd64

on:
push:
branches: [ master ]
branches: [ master, fix-build-system ]

jobs:
build:
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
env:
COMMON_CMAKE_ARGS: '-DBUILD_SHARED_LIBS=OFF -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra"'
LINUX_CMAKE_ARGS: '-DCMAKE_CXX_COMPILER=g++-10 -DCMAKE_C_COMPILER=gcc-10'
MACOS_CMAKE_ARGS: '-DCMAKE_CXX_COMPILER=g++-11 -DCMAKE_C_COMPILER=gcc-11'
MACOS_CMAKE_ARGS: '-DCMAKE_CXX_COMPILER=g++-14 -DCMAKE_C_COMPILER=gcc-14'
POSIX_CMAKE_ARGS: '-DCMAKE_BUILD_TYPE=MinSizeRel'
RELEASE: '${{ matrix.release }}'
suffix: '${{ matrix.clang-version }}_${{ matrix.os }}-amd64'
Expand Down Expand Up @@ -179,23 +179,25 @@ jobs:
- name: upload artifacts
uses: actions/upload-artifact@v4
with:
name: clang-tools
name: clang-tools-${{ matrix.release }}-${{ env.suffix }}
path: "${{ matrix.release }}${{ matrix.bindir }}/clang-*-${{ env.suffix }}*"
retention-days: 1
draft-release:
runs-on: ubuntu-20.04
needs: build
steps:
- name: download artifacts
uses: actions/download-artifact@v2
with:
name: clang-tools
uses: actions/download-artifact@v4
- name: list files
run: ls -laR .
- name: Workaround - delete all files over 2G, above github release file upload limit
run: find . -type f -size +2G -exec rm -v {} \;
- name: draft release
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: svenstaro/upload-release-action@v2
with:
file: "clang-*"
repo_token: ${{ secrets.GITHUB_TOKEN }}
draft: true
file_glob: true
file: clang-*/**/*

0 comments on commit 46b8640

Please sign in to comment.