chore: update action
Signed-off-by: wed150 <wed15058338634@outlook.com>
This commit is contained in:
+22
-22
@@ -7,33 +7,33 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup XMake
|
||||||
|
uses: xmake-io/github-action-setup-xmake@v1
|
||||||
|
|
||||||
|
- name: Cache
|
||||||
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
path: |
|
||||||
|
~/AppData/Local/.xmake
|
||||||
|
key: xmake-${{ hashFiles('xmake.lua') }}
|
||||||
|
restore-keys: |
|
||||||
|
xmake-
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- name: Update Repo
|
||||||
|
run: xmake repo -u
|
||||||
|
|
||||||
- uses: xmake-io/github-action-setup-xmake@v1
|
- name: Update Project
|
||||||
with:
|
run: xmake f -a x64 -m release -p windows -v -y
|
||||||
xmake-version: branch@master
|
|
||||||
- run: |
|
|
||||||
xmake repo -u
|
|
||||||
|
|
||||||
- run: |
|
- name: Build Project
|
||||||
xmake f -a x64 -m release -p windows -v -y
|
run: xmake -v -y
|
||||||
|
|
||||||
- run: |
|
- name: Upload Artifact
|
||||||
xmake -w -y
|
uses: actions/upload-artifact@v4
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
with:
|
||||||
name: ${{ github.event.repository.name }}-windows-x64-${{ github.sha }}
|
name: ${{ github.event.repository.name }}-windows-x64-${{ github.sha }}
|
||||||
path: |
|
path: |
|
||||||
bin/DLL/
|
bin/
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: PDB
|
|
||||||
path: |
|
|
||||||
bin/PDB/
|
|
||||||
@@ -7,36 +7,36 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup XMake
|
||||||
|
uses: xmake-io/github-action-setup-xmake@v1
|
||||||
|
|
||||||
|
- name: Cache
|
||||||
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
path: |
|
||||||
|
~/AppData/Local/.xmake
|
||||||
|
key: xmake-${{ hashFiles('xmake.lua') }}
|
||||||
|
restore-keys: |
|
||||||
|
xmake-
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- name: Update Repo
|
||||||
|
run: xmake repo -u
|
||||||
|
|
||||||
- uses: xmake-io/github-action-setup-xmake@v1
|
- name: Update Project
|
||||||
with:
|
run: xmake f -a x64 -m release -p windows -v -y
|
||||||
xmake-version: branch@master
|
|
||||||
- run: |
|
|
||||||
xmake repo -u
|
|
||||||
|
|
||||||
- run: |
|
- name: Build Project
|
||||||
xmake f -a x64 -m release -p windows -v -y
|
run: xmake -v -y
|
||||||
|
|
||||||
- run: |
|
- name: Upload Artifact
|
||||||
xmake -w -y
|
uses: actions/upload-artifact@v4
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
with:
|
||||||
name: ${{ github.event.repository.name }}-windows-x64-${{ github.sha }}
|
name: ${{ github.event.repository.name }}-windows-x64-${{ github.sha }}
|
||||||
path: |
|
path: |
|
||||||
bin/DLL/
|
bin/
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: PDB
|
|
||||||
path: |
|
|
||||||
bin/PDB/
|
|
||||||
|
|
||||||
upload-to-release:
|
upload-to-release:
|
||||||
needs:
|
needs:
|
||||||
@@ -45,35 +45,26 @@ jobs:
|
|||||||
contents: write
|
contents: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Download Mod
|
- name: Download Artifact
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ github.event.repository.name }}-windows-x64-${{ github.sha }}
|
name: ${{ github.event.repository.name }}-windows-x64-${{ github.sha }}
|
||||||
path: release/Mod/
|
path: artifact
|
||||||
|
|
||||||
- name: Download PDB
|
- name: Copy Files
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: PDB
|
|
||||||
path: release/PDB/
|
|
||||||
|
|
||||||
- name: Copy additional files
|
|
||||||
run: |
|
run: |
|
||||||
cp LICENSE README.md release/Mod/
|
cp LICENSE README.md artifact/
|
||||||
|
|
||||||
- name: Archive release
|
- name: Compress Artifact
|
||||||
run: |
|
run: |
|
||||||
cd release/Mod
|
|
||||||
zip -r ../${{ github.event.repository.name }}-windows-x64.zip *
|
zip -r ../${{ github.event.repository.name }}-windows-x64.zip *
|
||||||
cd ..
|
working-directory: artifact
|
||||||
|
|
||||||
- name: Create GitHub Release
|
- name: Create Release
|
||||||
id: create_release
|
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
release/${{ github.event.repository.name }}-windows-x64.zip
|
${{ github.event.repository.name }}-windows-x64.zip
|
||||||
release/PDB/${{ github.event.repository.name }}.pdb
|
|
||||||
|
|||||||
Reference in New Issue
Block a user