Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
zyr17 committed Feb 13, 2024
1 parent e1822d2 commit 157c9a9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install mingw
run: choco install mingw --Version 8.1.0
- name: npm
run: |
npm ci
npm run-script package-win
- name: cmake
run: |
$env:Path = "C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin;" + $env:Path
git submodule update --init --recursive
mkdir bin
mkdir bin/release
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,16 @@ jobs:
run: |
brew install p7zip
7z a MajsoulPaipuAnalyzer-macos-x64.7z MajsoulPaipuAnalyzer-macos-x64 -m0=LZMA2 -mmt
- uses: actions/upload-artifact@v2
with:
name: MajsoulPaipuAnalyzer-macos-x64.7z
path: MajsoulPaipuAnalyzer-macos-x64.7z
- uses: actions/upload-artifact@v2
with:
name: PaipuAnalyzer
path: bin/release/PaipuAnalyzer
- name: Upload to release
if: github.event_name != 'workflow_dispatch'
run: |
cp .github/asset.js .
node asset.js ${{ secrets.ACCESS_TOKEN }} $GITHUB_EVENT_PATH $GITHUB_REPOSITORY MajsoulPaipuAnalyzer-macos-x64.7z application/octet_stream
3 changes: 3 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install mingw
run: choco install mingw --Version 8.1.0
- name: npm
run: |
npm ci
npm run-script package-win
- name: cmake
run: |
$env:Path = "C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin;" + $env:Path
git submodule update --init --recursive
mkdir bin
mkdir bin/release
Expand Down

0 comments on commit 157c9a9

Please sign in to comment.