Skip to content

Commit

Permalink
ci: use multi-version backend
Browse files Browse the repository at this point in the history
  • Loading branch information
HuanCheng65 committed Jun 7, 2023
1 parent 4a5eb07 commit f4de2fa
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10,820 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ on:

jobs:
build:
runs-on: windows-latest
strategy:
matrix:
backend: ["windows-mingw", "windows-msvc"]
os: ["windows-latest"]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
Expand All @@ -23,7 +28,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh run download --repo The-Goo-Goo-Gang/nogo-backend -n xmake-artifact -D .\server
gh run download --repo The-Goo-Goo-Gang/nogo-backend -n ${{ matrix.backend }}-artifact -D .\server
rm .\server\nogo-test*
- name: Build
Expand All @@ -34,7 +39,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: artifact-windows
name: artifact-windows-backend-${{ matrix.backend }}
path: |
dist_electron\NoGo*.exe
dist_electron\NoGo*.7z
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

yarn.lock

# Editor directories and files
.idea
.vscode
Expand All @@ -27,4 +25,5 @@ yarn.lock
#Electron-builder output
/dist_electron

/server
/server
yarn.lock
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"@vue/cli-service": "~5.0.0",
"@vue/eslint-config-standard": "^8.0.1",
"@vue/eslint-config-typescript": "^11.0.2",
"cz-conventional-changelog": "^3.3.0",
"electron": "^22.0.0",
"electron-devtools-installer": "^3.1.0",
"eslint": "^8.36.0",
Expand All @@ -54,5 +55,10 @@
"sass-loader": "^12.0.0",
"typescript": "~5.0.2",
"vue-cli-plugin-electron-builder": "~2.1.1"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}
Loading

0 comments on commit f4de2fa

Please sign in to comment.