Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
luyanci committed Sep 30, 2024
1 parent 87b319c commit 4530269
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
name: build-${{matrix.os}}
path: ./vcbots-bili-${{runner.os}}-${{runner.arch}}.zip
make_bundle:
name: Make bundle
strategy:
fail-fast: false
matrix:
Expand All @@ -66,7 +67,7 @@ jobs:
mv python-build runtime
rm python-${{runner.os}}-${{runner.arch}}.zip
- name: Clean
run: rm -rf .env.example .gitignore README.md .github
run: rm -rf .env.example .gitignore README.md .github .git .res run.bat
- name: Install requirements
run: |
./runtime/bin/python3 -m pip install --upgrade pip
Expand All @@ -79,6 +80,7 @@ jobs:
name: bundle-${{matrix.os}}
path: ./vcbots-bili-${{matrix.os}}-${{runner.arch}}.zip
make_bundle_win:
name: Make bundle(windows)
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -93,6 +95,7 @@ jobs:
cmd /c "del .gitignore /s /q"
cmd /c "del README.md /s /q"
cmd /c "del .env.example /s /q"
cmd /c "del run.sh /s /q"
- name: Get pip
run: |
Invoke-Webrequest https://bootstrap.pypa.io/get-pip.py -OutFile get-pip.py
Expand All @@ -107,4 +110,21 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: bundle-win
path: ./vcbots-bili-${{runner.os}}-${{runner.arch}}.zip
path: ./vcbots-bili-${{runner.os}}-${{runner.arch}}.zip
make_bundle_no_runtime:
name: Make bundle(No Runtime)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Clean
run: |
rm -rf .env.example .gitignore README.md .github .git .res
rm -rf run.bat
rm -rf run.sh
- name: Pack
run: 7z a -tzip vcbots-bili-source.zip .
- name: Upload
uses: actions/upload-artifact@v4
with:
name: bundle-source
path: ./vcbots-bili-source.zip

0 comments on commit 4530269

Please sign in to comment.