Skip to content

Commit

Permalink
Add job to workflow which downloads libclang.dll
Browse files Browse the repository at this point in the history
  • Loading branch information
PucklaJ committed Jan 25, 2025
1 parent b97eda7 commit 765eeaa
Showing 1 changed file with 30 additions and 7 deletions.
37 changes: 30 additions & 7 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,33 @@ name: Build and Test
on: [push]

jobs:
download-libclang.dll:
runs-on: ubuntu-24.04
name: Download and Extract libclang.dll

steps:
- uses: actions/checkout@v4
with:
repository: PucklaJ/odin-libclang
ref: '19.1.7'
- name: Setup Just
run: sudo apt -y install just
- name: Download libclang.dll
run: just download-library '' 'build/'
- name: Upload libclang.dll
uses: actions/upload-artifact@v4
with:
name: libclang.dll
path: ${{ github.workspace }}/build/libclang.dll
if-no-files-found: error
overwrite: true
compression-level: 0
retention-days: 1


build-and-test:
runs-on: ${{ matrix.os }}
depends: download-libclang.dll
strategy:
fail-fast: false
matrix:
Expand All @@ -27,14 +52,11 @@ jobs:
if: matrix.os == 'ubuntu-24.04'
- name: Download libclang.dll
if: matrix.os == 'windows-latest'
uses: addnab/docker-run-action@v3
uses: actions/download-artifact@v4
with:
registry: registry.hub.docker.com
image: 'ubuntu:24.04'
options: -v ${{ github.workspace }}:/work
run: |
apt install -y just curl tar bash
just -f /work/shared/libclang/justfile download-library '' '/work/build/'
name: libclang.dll
merge-multiple: true
path: build
- name: Install llvm
run: brew install llvm@19
if: matrix.os == 'macos-13' || matrix.os == 'macos-14'
Expand Down Expand Up @@ -112,6 +134,7 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
pattern: 'runic*'
merge-multiple: true
path: artifacts
- name: List all artifacts
Expand Down

0 comments on commit 765eeaa

Please sign in to comment.