|
15 | 15 | - javascript |
16 | 16 | - javascript(pnpm) |
17 | 17 | - rust |
| 18 | + - dart |
18 | 19 |
|
19 | 20 | REPO: |
20 | 21 | description: "github repo name: XTLS/Xray-core" |
|
65 | 66 | git config --global user.name "github-actions[bot]" |
66 | 67 | git tag --delete ${P} || echo yes |
67 | 68 |
|
68 | | - - name: update go version |
| 69 | + - name: Setup go |
69 | 70 | if: inputs.LANG == 'golang' |
70 | 71 | uses: actions/setup-go@v6 |
71 | 72 | with: |
@@ -135,6 +136,25 @@ jobs: |
135 | 136 | cd "input/${WORKDIR}" |
136 | 137 | pycargoebuild --crate-tarball --distdir /tmp/ --license-mapping /tmp/license-mapping.conf |
137 | 138 |
|
| 139 | + - name: Setup dart |
| 140 | + if: inputs.LANG == 'dart' |
| 141 | + uses: dart-lang/setup-dart@v1 |
| 142 | + with: |
| 143 | + sdk: stable |
| 144 | + |
| 145 | + - name: Generate dart pubcache |
| 146 | + if: inputs.LANG == 'dart' |
| 147 | + env: |
| 148 | + P: ${{ inputs.P }} |
| 149 | + WORKDIR: ${{ inputs.WORKDIR }} |
| 150 | + PUB_CACHE: ${{ inputs.P }}/pubcache |
| 151 | + run: | |
| 152 | + git tag ${P} -m "${P}-dart.tar.xz" |
| 153 | + cd "input/${WORKDIR}" |
| 154 | + dart --disable-analytics |
| 155 | + dart pub get |
| 156 | + tar --create --auto-compress --file /tmp/${P}-pubcache.tar.xz ${{ inputs.P }} |
| 157 | +
|
138 | 158 | - name: push tag |
139 | 159 | uses: ad-m/github-push-action@master |
140 | 160 | with: |
@@ -182,3 +202,11 @@ jobs: |
182 | 202 | /tmp/*-crates.tar.xz |
183 | 203 | input/${{ inputs.WORKDIR }}/*.ebuild |
184 | 204 | tag_name: ${{ inputs.P }} |
| 205 | + |
| 206 | + - name: upload rust crates to release artifaces |
| 207 | + if: inputs.LANG == 'dart' |
| 208 | + uses: softprops/action-gh-release@v2 |
| 209 | + with: |
| 210 | + files: | |
| 211 | + /tmp/*-pubcache.tar.xz |
| 212 | + tag_name: ${{ inputs.P }} |
0 commit comments