[CI] Add LLVM/Clang 20
This commit is contained in:
parent
76d3dbbbe1
commit
2f1aa5b62a
|
@ -25,17 +25,20 @@ jobs:
|
||||||
rm -rf **/*.pdb
|
rm -rf **/*.pdb
|
||||||
case ${{ inputs.os }} in
|
case ${{ inputs.os }} in
|
||||||
windows)
|
windows)
|
||||||
asset=xenia_canary_windows.zip
|
assets=xenia_canary_windows.zip
|
||||||
7z a $asset './xenia_canary_windows/*'
|
7z a $assets './xenia_canary_windows/*'
|
||||||
;;
|
;;
|
||||||
linux)
|
linux)
|
||||||
asset=xenia_canary_linux.tar.gz
|
for dir in xenia_canary_${{ inputs.os }}*; do
|
||||||
cd xenia_canary_linux
|
cd $dir
|
||||||
chmod +x xenia_canary
|
chmod +x xenia_canary
|
||||||
tar -czvpf ../$asset *
|
assets+=(${dir}.tar.gz)
|
||||||
|
tar -czvpf ../$assets *
|
||||||
cd -
|
cd -
|
||||||
|
done
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
for asset in ${assets[@]}; do
|
||||||
if [ ! -f $asset ]; then
|
if [ ! -f $asset ]; then
|
||||||
echo "::error::$asset doesn't exist!"
|
echo "::error::$asset doesn't exist!"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -44,14 +47,15 @@ jobs:
|
||||||
echo "::error::$asset is too small!"
|
echo "::error::$asset is too small!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
create_or_edit_release() {
|
create_or_edit_release() {
|
||||||
local tag=$1
|
local tag=$1
|
||||||
local title=$2
|
local title=$2
|
||||||
if gh release view $tag; then
|
if gh release view $tag; then
|
||||||
gh release edit $tag -t $title -n "$notes"
|
gh release edit $tag -t $title -n "$notes"
|
||||||
gh release upload $tag $asset --clobber
|
gh release upload $tag ${assets[@]} --clobber
|
||||||
else
|
else
|
||||||
gh release create $tag $asset --target 925ed98d5dce604b651027c36fb522dc1ff0fa55 -t $title -n "$notes"
|
gh release create $tag ${assets[@]} --target 925ed98d5dce604b651027c36fb522dc1ff0fa55 -t $title -n "$notes"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
tag=${GITHUB_SHA::7}
|
tag=${GITHUB_SHA::7}
|
||||||
|
|
|
@ -72,7 +72,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
LLVM_VERSION: ['${{ needs.lint.outputs.LLVM_VERSION }}']
|
LLVM_VERSION: ['${{ needs.lint.outputs.LLVM_VERSION }}', 20]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@main
|
- uses: actions/checkout@main
|
||||||
with:
|
with:
|
||||||
|
@ -104,7 +104,7 @@ jobs:
|
||||||
if: steps.prepare_artifacts.outcome == 'success'
|
if: steps.prepare_artifacts.outcome == 'success'
|
||||||
uses: actions/upload-artifact@main
|
uses: actions/upload-artifact@main
|
||||||
with:
|
with:
|
||||||
name: xenia_canary_linux
|
name: xenia_canary_linux_clang${{ matrix.LLVM_VERSION }}
|
||||||
path: artifacts
|
path: artifacts
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue