diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2db31cc..c1ea4f4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 71ffe9e..f81f0ac 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 6b6b7fa..6b58a27 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -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