File tree Expand file tree Collapse file tree 2 files changed +42
-4
lines changed Expand file tree Collapse file tree 2 files changed +42
-4
lines changed Original file line number Diff line number Diff line change 7474
7575 - name : Install LLVM
7676 uses : Pivot-Studio/setup-llvm@main
77-
78- # - name: set up win scoop
79- # if: ${{ matrix.config.os == 'windows-latest' }}
80- # uses: MinoruSekine/setup-scoop@main
8177
8278
8379 - name : Cargo build
@@ -224,3 +220,21 @@ jobs:
224220 replacesArtifacts : false
225221 commit : master
226222 tag : v0.1.${{ github.run_number }}
223+ - name : generate scoop manifest
224+ if : ${{ matrix.config.os == 'windows-latest' }}
225+ run : |
226+ mkdir scoop
227+ $template=(cat .\plc.json)
228+ $version="v0.1.${{ github.run_number }}"
229+ $file="pivot-lang-0.1.${{ github.run_number }}-${{ matrix.config.arch }}.tar.gz"
230+ $sha256=($(certutil -hashfile $file SHA256)[1])
231+ cd scoop
232+ $template -f $version,$file,$sha256>plc.json
233+ - name : Deploy
234+ uses : peaceiris/actions-gh-pages@v3
235+ if : ${{ matrix.config.os == 'windows-latest' }}
236+ with :
237+ github_token : ${{ secrets.GITHUB_TOKEN }}
238+ publish_dir : ./scoop
239+ publish_branch : scoop
240+
Original file line number Diff line number Diff line change 1+ {{
2+ "version": "{0}",
3+ "homepage": "https://lang.pivotstudio.cn",
4+ "license": "MIT",
5+ "description": "Pivot Lang Compiler and language server",
6+ "bin": [
7+ "plc.exe"
8+ ],
9+ "architecture": {{
10+ "64bit": {{
11+ "url": "https://github.com/Pivot-Studio/pivot-lang/releases/download/{0}/{1}",
12+ "type": "tar.xz",
13+ "sha256": "{2}"
14+ }}
15+ }},
16+ "env_add_path": [
17+ "$dir"
18+ ],
19+ "post_install": [
20+ "tar xvf {1}",
21+ "setx KAGARI_LIB_ROOT \"$dir\\win64\\planglib\"",
22+ "setx PL_ROOT \"$dir\\win64\""
23+ ]
24+ }}
You can’t perform that action at this time.
0 commit comments