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

Actions v4 #29

Merged
merged 2 commits into from
Apr 5, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/cctools-prebuilt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
tar -cJf cctools-${{matrix.arch}}-${{matrix.os}}.tar.xz cctools-${{matrix.arch}}-${{matrix.os}}

- name: Upload cctools package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: cctools-${{matrix.arch}}-${{matrix.os}}
path: cctools-${{matrix.arch}}-${{matrix.os}}.tar.xz
4 changes: 2 additions & 2 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ on:
description: 'dry run (skip release)'
required: true
type: boolean
default: 'true'
default: true
draft-release:
description: 'Create draft release'
required: true
type: boolean
default: 'false'
default: false

jobs:
publish:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/halide-prebuilt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,12 @@ jobs:
}

- name: Clone project
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: llvm-prebuilt

- name: Clone Halide ${{matrix.version}}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: halide/Halide
ref: v${{matrix.version}}
Expand Down Expand Up @@ -244,7 +244,7 @@ jobs:
}

- name: Upload Halide package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: halide-${{matrix.version}}-${{matrix.arch}}-${{matrix.os}}
path: halide-${{matrix.version}}-${{matrix.arch}}-${{matrix.os}}.tar.xz
27 changes: 23 additions & 4 deletions .github/workflows/llvm-prebuilt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,11 @@ jobs:
sudo apt install zstd xz-utils
sudo apt install ninja-build
sudo apt install g++-aarch64-linux-gnu

sudo apt install libxml2-dev
mkdir libxml2-dev-arm64 && cd libxml2-dev-arm64
$LibXmlDebFile = if ($(lsb_release -rs) -eq '20.04') {
"libxml2-dev_2.9.10+dfsg-5ubuntu0.20.04.6_arm64.deb"
"libxml2-dev_2.9.10+dfsg-5ubuntu0.20.04.7_arm64.deb"
} else {
"libxml2-dev_2.9.13+dfsg-1build1_arm64.deb"
}
Expand All @@ -74,14 +75,32 @@ jobs:
tar -xf data.tar.xz
}
sudo cp -R ./usr/lib/aarch64-linux-gnu/ /usr/lib/aarch64-linux-gnu
cd ..

sudo apt install zlib1g-dev
mkdir zlib1g-dev-arm64 && cd zlib1g-dev-arm64
$ZlibDebFile = if ($(lsb_release -rs) -eq '20.04') {
"zlib1g-dev_1.2.11.dfsg-2ubuntu1_arm64.deb"
} else {
"zlib1g-dev_1.2.11.dfsg-2ubuntu9_arm64.deb"
}
wget -q "http://ports.ubuntu.com/pool/main/z/zlib/$ZlibDebFile"
ar -x "$ZlibDebFile"
if (Test-Path 'data.tar.zst') {
tar --use-compress-program=unzstd -xf data.tar.zst
} else {
tar -xf data.tar.xz
}
sudo cp -R ./usr/lib/aarch64-linux-gnu/ /usr/lib/aarch64-linux-gnu
cd ..

- name: Clone project
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: llvm-prebuilt

- name: Clone LLVM ${{matrix.version}}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: llvm/llvm-project
ref: ${{matrix.branch}}
Expand Down Expand Up @@ -172,7 +191,7 @@ jobs:
cmd.exe /c "7z a -ttar -snl -so clang+llvm-${{matrix.version}}-${{matrix.arch}}-${{matrix.os}}.tar clang+llvm-${{matrix.version}}-${{matrix.arch}}-${{matrix.os}} | 7z a -si clang+llvm-${{matrix.version}}-${{matrix.arch}}-${{matrix.os}}.tar.xz"

- name: Upload LLVM package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: clang+llvm-${{matrix.version}}-${{matrix.arch}}-${{matrix.os}}
path: clang+llvm-${{matrix.version}}-${{matrix.arch}}-${{matrix.os}}.tar.xz
4 changes: 2 additions & 2 deletions .github/workflows/msvc-bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ jobs:
cmd.exe /c "7z a -ttar -snl -so winsdk.tar winsdk | 7z a -si winsdk.tar.xz"

- name: Upload vctools package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: vctools
path: vctools.tar.xz

- name: Upload winsdk package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: winsdk
path: winsdk.tar.xz
6 changes: 3 additions & 3 deletions .github/workflows/rust-prebuilt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,12 @@ jobs:
echo "PATH=$LLVM_BIN_PATH$([IO.Path]::PathSeparator)$Env:PATH" >> $Env:GITHUB_ENV

- name: Clone project
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: llvm-prebuilt

- name: Clone Rust ${{matrix.version}}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: rust-lang/rust
ref: ${{matrix.version}}
Expand Down Expand Up @@ -209,7 +209,7 @@ jobs:
python x.py dist

- name: Upload Rust
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: rust-${{matrix.version}}-${{matrix.arch}}-${{matrix.os}}
path: ${{ env.RUST_BUILD_DIR }}/dist
2 changes: 1 addition & 1 deletion .github/workflows/xcode-bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
tar -cJf xcode-bundle.tar.xz ./xcode-bundle

- name: Upload xcode-bundle package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: xcode-bundle
path: xcode-bundle.tar.xz
6 changes: 5 additions & 1 deletion cmake/llvm-distribution.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ set(LLVM_ENABLE_BACKTRACES OFF CACHE BOOL "")
set(LLVM_ENABLE_DIA_SDK OFF CACHE BOOL "")
set(LLVM_ENABLE_TERMINFO OFF CACHE BOOL "")
set(LLVM_ENABLE_LIBXML2 ON CACHE BOOL "")
set(LLVM_ENABLE_ZLIB OFF CACHE BOOL "")
if(NOT WINDOWS)
set(LLVM_ENABLE_ZLIB ON CACHE BOOL "")
else()
set(LLVM_ENABLE_ZLIB OFF CACHE BOOL "")
endif()
set(LLVM_ENABLE_ZSTD OFF CACHE BOOL "")
set(LLVM_ENABLE_UNWIND_TABLES OFF CACHE BOOL "")
set(LLVM_ENABLE_Z3_SOLVER OFF CACHE BOOL "")
Expand Down