From feddb7db262270a278e03b61402a15ec8643642e Mon Sep 17 00:00:00 2001 From: nekosu Date: Wed, 11 Oct 2023 17:32:12 +0800 Subject: [PATCH] ci: add sample artifacts #65 --- .github/workflows/ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6d723229..e2d8050cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -263,6 +263,25 @@ jobs: name: MAA-macos-${{ matrix.arch }} path: "install" + sample_bindings: + runs-on: ubuntu-latest + + steps: + - name: Prepare sample + run: | + mkdir -p install.sample + cp -r binding install.sample + cp -r sample install.sample + rm -r install.sample/sample/cpp + mkdir install.sample/sample/cpp + cp sample/cpp/main.cpp install.sample/sample/cpp/ + + - uses: actions/upload-artifact@v3 + if: always() + with: + name: MAA-samples-bindings + path: "install.sample" + nuget_pack: needs: [meta, windows, ubuntu, macos] runs-on: ubuntu-latest