From 4f2cf7f346e1c4cade4fdb4a82076663838d83cf Mon Sep 17 00:00:00 2001 From: Caixukun1919810 <116721335+Tsubasa6848@users.noreply.github.com> Date: Wed, 3 Jan 2024 08:37:15 +0800 Subject: [PATCH] feat: remove legacy action --- .github/workflows/Build.yml | 73 -------------------------------- .github/workflows/update_sdk.yml | 20 --------- 2 files changed, 93 deletions(-) delete mode 100644 .github/workflows/Build.yml delete mode 100644 .github/workflows/update_sdk.yml diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml deleted file mode 100644 index 3306b4c..0000000 --- a/.github/workflows/Build.yml +++ /dev/null @@ -1,73 +0,0 @@ -name: Build - -on: [push] - -env: - # Customize the CMake build type here (MinSizeRel, Debug, RelWithDebInfo, etc.) - BUILD_TYPE: MinSizeRel - -jobs: - build: - runs-on: windows-2022 - - steps: - - uses: actions/checkout@v3.2.0 - with: - fetch-depth: 0 - submodules: 'true' - - - name: Download Server - working-directory: ${{env.GITHUB_WORKSPACE}} - run: | - mkdir D:/BDS - ServerLink=$(cat 'LINK.txt') - curl -L -o D:/BDS/server.zip "$ServerLink" - unzip D:/BDS/server.zip -d D:/BDS > /dev/null - shell: bash - - - name: Build Library - working-directory: ${{env.GITHUB_WORKSPACE}} - run: | - cd SDK/Tools - LibraryBuilder.exe -o ..\Lib D:\BDS - shell: cmd - - - name: Configure CMake - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} - - - name: Build - run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} - - - name: MkDirs - working-directory: ${{env.GITHUB_WORKSPACE}} - run: | - mkdir D:/out/plugins - - - name: Copy Out Files - working-directory: ${{env.GITHUB_WORKSPACE}} - run: | - cp D:/a/Cleaner/Cleaner/build/MinSizeRel/*.dll D:/out/plugins - cp D:/a/Cleaner/Cleaner/build/MinSizeRel/*.pdb D:/out/plugins - shell: bash - - - name: Upload plugins - uses: actions/upload-artifact@v1.0.0 - with: - name: Cleaner - path: D:/out/plugins - - - name: Compress to zip - if: startsWith(github.ref, 'refs/tags/') - run: | - 7z a D:/out/Cleaner.zip D:/out/plugins - shell: bash - - - name: Release - uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') - with: - body_path: ${{ github.workspace }}\CHANGELOG.md - files: | - D:/out/plugins/Cleaner.dll - D:/out/plugins/Cleaner.pdb - D:/out/Cleaner.zip diff --git a/.github/workflows/update_sdk.yml b/.github/workflows/update_sdk.yml deleted file mode 100644 index 06327cc..0000000 --- a/.github/workflows/update_sdk.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Update SDK - -on: - workflow_dispatch: - -jobs: - update_sdk: - name: Update SDK - runs-on: ubuntu-latest - steps: - - name: Checkout the main branch - uses: actions/checkout@v3 - - - name: Update submodules - run: | - git submodule update --init --remote - git config --global user.name "github-actions[bot]" - git config --global user.email "github-actions[bot]@users.noreply.github.com" - git commit -am "Update SDK" || exit 0 - git push || exit 0