Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 17 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- main
workflow_dispatch:

permissions:
contents: read

jobs:
windows:
runs-on: windows-2022
Expand All @@ -22,7 +25,7 @@ jobs:
# - { arch: "ARM64 "}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e # v2.8.0
with:
repository: llvm/llvm-project
ref: llvmorg-17.0.0-rc3
Expand All @@ -32,7 +35,7 @@ jobs:
id: llvm-revision
run: |
echo "revision=$(git -C ${{ github.workspace }}/llvm-project rev-parse HEAD)" >> "$GITHUB_OUTPUT"
- uses: actions/cache@v4
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
id: llvm-build
with:
path: ${{ github.workspace }}/build/llvm-project
Expand All @@ -46,12 +49,12 @@ jobs:
cmake --build ${{ github.workspace }}/build/llvm-project --config Release --target FileCheck
cmake --build ${{ github.workspace }}/build/llvm-project --config Release --target yaml2obj
- name: Upload LLVM tools as an artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: llvm-tools-${{ matrix.artifact_key }}
path: ./build/llvm-project/Release/bin

- uses: actions/checkout@v2
- uses: actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e # v2.8.0
with:
path: bloaty
- name: configure
Expand All @@ -74,9 +77,9 @@ jobs:
- { cflags: "-fmodules", cxxflags: "-fmodules", artifact_key: "macos-modules" }

steps:
- uses: seanmiddleditch/gha-setup-ninja@master
- uses: seanmiddleditch/gha-setup-ninja@7e868db0f3406270dd46e1dac26c65f621456723 # master

- uses: actions/checkout@v2
- uses: actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e # v2.8.0
with:
repository: llvm/llvm-project
ref: llvmorg-17.0.0-rc3
Expand All @@ -86,7 +89,7 @@ jobs:
id: llvm-revision
run: |
echo "revision=$(git -C ${{ github.workspace }}/llvm-project rev-parse HEAD)" >> "$GITHUB_OUTPUT"
- uses: actions/cache@v4
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
id: llvm-build
with:
path: ${{ github.workspace }}/build/llvm-project
Expand All @@ -100,12 +103,12 @@ jobs:
cmake --build ${{ github.workspace }}/build/llvm-project --target FileCheck
cmake --build ${{ github.workspace }}/build/llvm-project --target yaml2obj
- name: Upload LLVM tools as an artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: llvm-tools-${{ matrix.artifact_key }}
path: ./build/llvm-project/bin

- uses: actions/checkout@v2
- uses: actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e # v2.8.0
with:
path: ${{ github.workspace }}/bloaty
- name: configure
Expand All @@ -127,9 +130,9 @@ jobs:
- { CC: clang, CXX: clang++, artifact_key: "linux-clang" }

steps:
- uses: seanmiddleditch/gha-setup-ninja@master
- uses: seanmiddleditch/gha-setup-ninja@7e868db0f3406270dd46e1dac26c65f621456723 # master

- uses: actions/checkout@v2
- uses: actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e # v2.8.0
with:
repository: llvm/llvm-project
ref: llvmorg-17.0.0-rc3
Expand All @@ -139,7 +142,7 @@ jobs:
id: llvm-revision
run: |
echo "revision=$(git -C ${{ github.workspace }}/llvm-project rev-parse HEAD)" >> "$GITHUB_OUTPUT"
- uses: actions/cache@v4
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
id: llvm-build
with:
path: ${{ github.workspace }}/build/llvm-project
Expand All @@ -153,12 +156,12 @@ jobs:
cmake --build ${{ github.workspace }}/build/llvm-project --target FileCheck
cmake --build ${{ github.workspace }}/build/llvm-project --target yaml2obj
- name: Upload LLVM tools as an artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: llvm-tools-${{ matrix.artifact_key }}
path: ./build/llvm-project/bin

- uses: actions/checkout@v2
- uses: actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e # v2.8.0
with:
path: ${{ github.workspace }}/bloaty
- name: configure
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/cifuzz.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: CIFuzz
on: [pull_request]
permissions:
contents: read
jobs:
Fuzzing:
runs-on: ubuntu-latest
Expand All @@ -9,20 +11,20 @@ jobs:
sanitizer: [address, undefined]
steps:
- name: Build Fuzzers (${{ matrix.sanitizer }})
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@f3af0cb37c1a5fbc8be71f4ad13135b6f9de9acd # master
with:
oss-fuzz-project-name: 'bloaty'
dry-run: false
sanitizer: ${{ matrix.sanitizer }}
- name: Run Fuzzers (${{ matrix.sanitizer }})
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@f3af0cb37c1a5fbc8be71f4ad13135b6f9de9acd # master
with:
oss-fuzz-project-name: 'bloaty'
fuzz-seconds: 600
dry-run: false
sanitizer: ${{ matrix.sanitizer }}
- name: Upload Crash
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: failure()
with:
name: ${{ matrix.sanitizer }}-artifacts
Expand Down
Loading