summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorliushuyu <liushuyu011@gmail.com>2022-06-19 07:15:30 +0200
committerliushuyu <liushuyu011@gmail.com>2022-07-05 05:21:56 +0200
commit9981ce8d98953c6353cbc883db225412952459cc (patch)
tree85cc08f5af3c3e13639a2878bc9f102e44bd7c53
parentCI: fix caching (diff)
downloadyuzu-9981ce8d98953c6353cbc883db225412952459cc.tar
yuzu-9981ce8d98953c6353cbc883db225412952459cc.tar.gz
yuzu-9981ce8d98953c6353cbc883db225412952459cc.tar.bz2
yuzu-9981ce8d98953c6353cbc883db225412952459cc.tar.lz
yuzu-9981ce8d98953c6353cbc883db225412952459cc.tar.xz
yuzu-9981ce8d98953c6353cbc883db225412952459cc.tar.zst
yuzu-9981ce8d98953c6353cbc883db225412952459cc.zip
-rwxr-xr-x[-rw-r--r--].ci/scripts/clang/upload.sh0
-rw-r--r--.ci/scripts/common/post-upload.sh6
-rwxr-xr-x[-rw-r--r--].ci/scripts/linux/upload.sh0
-rwxr-xr-x[-rw-r--r--].ci/scripts/windows/upload.sh0
-rw-r--r--.github/workflows/verify.yml18
5 files changed, 22 insertions, 2 deletions
diff --git a/.ci/scripts/clang/upload.sh b/.ci/scripts/clang/upload.sh
index fe4e6b2ac..fe4e6b2ac 100644..100755
--- a/.ci/scripts/clang/upload.sh
+++ b/.ci/scripts/clang/upload.sh
diff --git a/.ci/scripts/common/post-upload.sh b/.ci/scripts/common/post-upload.sh
index 387431564..91ef750fe 100644
--- a/.ci/scripts/common/post-upload.sh
+++ b/.ci/scripts/common/post-upload.sh
@@ -4,8 +4,10 @@
cp license.txt "$DIR_NAME"
cp README.md "$DIR_NAME"
-tar -cJvf "${REV_NAME}-source.tar.xz" src externals CMakeLists.txt README.md license.txt
-cp "${REV_NAME}-source.tar.xz" "$DIR_NAME"
+if [[ "x${NO_SOURCE_PACK}" == "x" ]]; then
+ 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"
diff --git a/.ci/scripts/linux/upload.sh b/.ci/scripts/linux/upload.sh
index 208cd0d04..208cd0d04 100644..100755
--- a/.ci/scripts/linux/upload.sh
+++ b/.ci/scripts/linux/upload.sh
diff --git a/.ci/scripts/windows/upload.sh b/.ci/scripts/windows/upload.sh
index 3c6a74218..3c6a74218 100644..100755
--- a/.ci/scripts/windows/upload.sh
+++ b/.ci/scripts/windows/upload.sh
diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml
index d26ebc3ac..7e39ef847 100644
--- a/.github/workflows/verify.yml
+++ b/.github/workflows/verify.yml
@@ -54,6 +54,15 @@ jobs:
run: ./.ci/scripts/${{ matrix.type }}/docker.sh
env:
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:
name: 'test build (windows, msvc)'
needs: format
@@ -67,6 +76,7 @@ jobs:
restore-keys: |
${{ runner.os }}-msvc-
- name: Install dependencies
+ # due to how chocolatey works, only cmd.exe is supported here
shell: cmd
run: |
choco install vulkan-sdk wget
@@ -95,3 +105,11 @@ jobs:
run: cmake --build build
- name: Cache Summary
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/