Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRAFT: Try creating llvm artefacts #634

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
12 changes: 6 additions & 6 deletions .github/actions/setup_build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ runs:
if: inputs.cross_arch != 'none'
run: mv llvm_install llvm_install_native

- name: load llvm
uses: actions/cache/restore@v4
with:
path: llvm_install/**
key: llvm-${{ inputs.os }}-${{ steps.set_llvm_key.outputs.key_version }}-${{ steps.set_llvm_key.outputs.key_arch }}-v${{ inputs.llvm_version }}-${{ inputs.llvm_build_type }}
fail-on-cache-miss: true
# - name: load llvm
# uses: actions/cache/restore@v4
# with:
# path: llvm_install/**
# key: llvm-${{ inputs.os }}-${{ steps.set_llvm_key.outputs.key_version }}-${{ steps.set_llvm_key.outputs.key_arch }}-v${{ inputs.llvm_version }}-${{ inputs.llvm_build_type }}
# fail-on-cache-miss: true

# note the PR testing usage should set 'save' to false, to avoid PR testing creating new caches on a branch
- name: Setup ccache
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/create_llvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ on:
- main
paths:
- '.github/workflows/create_llvm.yml'
pull_request:
paths:
- '.github/workflows/create_llvm.yml'
# pull_request:
# paths:
# - '.github/workflows/create_llvm.yml'
schedule:
# Run Mon-Fri at 5pm
- cron: '00 17 * * 1-5'
Expand Down Expand Up @@ -145,3 +145,11 @@ jobs:
run: |
cp build/bin/FileCheck* llvm_install/bin
cp build/bin/not* llvm_install/bin

- name: upload llvm artefact
if: steps.cache.outputs.cache-hit == 'true' && ${{ matrix.os }} == 'ubuntu-22.04' && ${{ matrix.version }} == '19' && ${{ matrix.arch }} == 'x86_64' && ${{ matrix.build_type }} == 'RelAssert'
uses: actions/upload-artifact@v4
with:
name: llvm-${{ matrix.os }}-${{ matrix.arch }}-v${{ matrix.version }}-${{ matrix.build_type }}
path: llvm_install
retention-days: 1
Loading