mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 04:46:27 -05:00
CI: upload artifacts for pull request verification
This commit is contained in:
parent
40493231ed
commit
9981ce8d98
5 changed files with 22 additions and 2 deletions
0
.ci/scripts/clang/upload.sh
Normal file → Executable file
0
.ci/scripts/clang/upload.sh
Normal file → Executable file
|
@ -4,8 +4,10 @@
|
||||||
cp license.txt "$DIR_NAME"
|
cp license.txt "$DIR_NAME"
|
||||||
cp README.md "$DIR_NAME"
|
cp README.md "$DIR_NAME"
|
||||||
|
|
||||||
tar -cJvf "${REV_NAME}-source.tar.xz" src externals CMakeLists.txt README.md license.txt
|
if [[ "x${NO_SOURCE_PACK}" == "x" ]]; then
|
||||||
cp "${REV_NAME}-source.tar.xz" "$DIR_NAME"
|
tar -cJvf "${REV_NAME}-source.tar.xz" src externals CMakeLists.txt README.md license.txt
|
||||||
|
cp -v "${REV_NAME}-source.tar.xz" "$DIR_NAME"
|
||||||
|
fi
|
||||||
|
|
||||||
tar $COMPRESSION_FLAGS "$ARCHIVE_NAME" "$DIR_NAME"
|
tar $COMPRESSION_FLAGS "$ARCHIVE_NAME" "$DIR_NAME"
|
||||||
|
|
||||||
|
|
0
.ci/scripts/linux/upload.sh
Normal file → Executable file
0
.ci/scripts/linux/upload.sh
Normal file → Executable file
0
.ci/scripts/windows/upload.sh
Normal file → Executable file
0
.ci/scripts/windows/upload.sh
Normal file → Executable file
18
.github/workflows/verify.yml
vendored
18
.github/workflows/verify.yml
vendored
|
@ -54,6 +54,15 @@ jobs:
|
||||||
run: ./.ci/scripts/${{ matrix.type }}/docker.sh
|
run: ./.ci/scripts/${{ matrix.type }}/docker.sh
|
||||||
env:
|
env:
|
||||||
ENABLE_COMPATIBILITY_REPORTING: "ON"
|
ENABLE_COMPATIBILITY_REPORTING: "ON"
|
||||||
|
- name: Pack
|
||||||
|
run: ./.ci/scripts/${{ matrix.type }}/upload.sh
|
||||||
|
env:
|
||||||
|
NO_SOURCE_PACK: "YES"
|
||||||
|
- name: Upload
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: ${{ matrix.type }}
|
||||||
|
path: artifacts/
|
||||||
build-msvc:
|
build-msvc:
|
||||||
name: 'test build (windows, msvc)'
|
name: 'test build (windows, msvc)'
|
||||||
needs: format
|
needs: format
|
||||||
|
@ -67,6 +76,7 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-msvc-
|
${{ runner.os }}-msvc-
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
# due to how chocolatey works, only cmd.exe is supported here
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
choco install vulkan-sdk wget
|
choco install vulkan-sdk wget
|
||||||
|
@ -95,3 +105,11 @@ jobs:
|
||||||
run: cmake --build build
|
run: cmake --build build
|
||||||
- name: Cache Summary
|
- name: Cache Summary
|
||||||
run: buildcache -s
|
run: buildcache -s
|
||||||
|
- name: Pack
|
||||||
|
shell: pwsh
|
||||||
|
run: .\.ci\scripts\windows\upload.ps1
|
||||||
|
- name: Upload
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: msvc
|
||||||
|
path: artifacts/
|
||||||
|
|
Loading…
Reference in a new issue