From bb878ab67277bf02969abd96c7d829b5a00959df Mon Sep 17 00:00:00 2001 From: zyr17 Date: Thu, 14 Mar 2024 21:15:46 +0800 Subject: [PATCH] update test ci --- .github/workflows/test_macos_PA.yml | 56 +++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/workflows/test_macos_PA.yml diff --git a/.github/workflows/test_macos_PA.yml b/.github/workflows/test_macos_PA.yml new file mode 100644 index 0000000..f5a4f75 --- /dev/null +++ b/.github/workflows/test_macos_PA.yml @@ -0,0 +1,56 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: MacOS PaipuAnalyzer only test CI + +on: + push: + workflow_dispatch: + +jobs: + build: + runs-on: macOS-latest + + strategy: + matrix: + node-version: [16.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm + run: | + npm ci + npm run-script package-darwin + - name: cmake + run: | + git submodule update --init --recursive + mkdir bin + mkdir bin/release + cd bin/release + cmake ../.. -DCMAKE_BUILD_TYPE=Release + make -j + - name: collect + run: | + cp -r dist/MajsoulPaipuCrawler-darwin-x64 result + cp bin/release/PaipuAnalyzer result/ + cp bin/release/PaipuAnalyzer ./ + cp config.json result/ + cp PAADData.json result/ + cp doc/README.txt result/ + cp doc/release-notes.txt result/ + cp -r i18n/ result/ + ls -l result + mv result MajsoulPaipuAnalyzer-macos +# ln -s "~/Library/Application Support/MajsoulPaipuAnalyzer/data" result/data + - name: archive + run: | + brew install p7zip + 7z a PaipuAnalyzer.zip PaipuAnalyzer + - uses: actions/upload-artifact@v2 + with: + name: PaipuAnalyzer + path: PaipuAnalyzer.zip