feat: remove legacy action
This commit is contained in:
committed by
GitHub
Unverified
parent
5df234806a
commit
4f2cf7f346
@@ -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
|
|
||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user