|
16 | 16 | qa: |
17 | 17 | uses: ./.github/workflows/ci.yml |
18 | 18 |
|
19 | | - integration-tests: |
20 | | - uses: ./.github/workflows/ci.shellcode.yml |
21 | | - |
22 | 19 | attach-srcs: |
23 | 20 | runs-on: ubuntu-latest |
24 | | - needs: [qa, integration-tests] |
| 21 | + needs: [qa] |
25 | 22 | env: |
26 | 23 | FILENAME: pkgx-${{ github.event.inputs.version }} |
27 | 24 | steps: |
|
30 | 27 | path: ${{ env.FILENAME }} |
31 | 28 | - name: clean |
32 | 29 | run: rm -rf ${{ env.FILENAME }}/.github .gitbook.yml |
33 | | - - name: stamp version.ts |
34 | | - run: echo "export default function() { return '${{github.event.inputs.version}}' }" > $FILENAME/src/modes/version.ts |
35 | 30 | - name: include GPG pubkey |
36 | 31 | run: echo "${{ secrets.GPG_PUBLIC_KEY }}" | base64 -d > $FILENAME/pkgx.dev.pub.asc |
37 | 32 | - run: tar cJf $FILENAME.tar.xz $FILENAME |
@@ -82,25 +77,22 @@ jobs: |
82 | 77 |
|
83 | 78 | - run: pkgx +xz tar xJf pkgx-${{ github.event.inputs.version }}.tar.xz --strip-components=1 |
84 | 79 |
|
85 | | - # we would prefer this, but our pkging is not stable enough :/ |
86 | | - # - uses: pkgxdev/dev@v0 |
87 | | - - uses: denoland/setup-deno@v2 |
88 | | - with: |
89 | | - deno-version: ^2.1.4 |
| 80 | + - uses: dtolnay/rust-toolchain@stable |
90 | 81 |
|
91 | | - - run: deno task compile |
| 82 | + - run: | |
| 83 | + cargo build --release |
| 84 | + mv .target/release/pkgx . |
| 85 | + strip ./pkgx |
92 | 86 |
|
93 | | - - uses: pkgxdev/brewkit/actions/setup-codesign@v0 |
| 87 | + - uses: pkgxdev/brewkit/actions/setup-codesign@v1 |
94 | 88 | if: startsWith(matrix.platform.build-id, 'darwin+') |
95 | 89 | with: |
96 | 90 | p12-file-base64: ${{ secrets.APPLE_CERTIFICATE_P12 }} |
97 | 91 | p12-password: ${{ secrets.APPLE_CERTIFICATE_P12_PASSWORD }} |
98 | 92 |
|
99 | | - # codesign always fails for deno binaries, even though it |
100 | | - # signs fine. See https://github.com/denoland/deno/issues/575 |
101 | 93 | - run: codesign |
102 | 94 | --sign "$APPLE_IDENTITY" --force |
103 | | - --preserve-metadata=entitlements,requirements,flags,runtime ./pkgx || true |
| 95 | + --preserve-metadata=entitlements,requirements,flags,runtime ./pkgx |
104 | 96 | env: |
105 | 97 | APPLE_IDENTITY: ${{ secrets.APPLE_IDENTITY }} |
106 | 98 |
|
@@ -131,7 +123,4 @@ jobs: |
131 | 123 | v${{ github.event.inputs.version }} |
132 | 124 | $FILENAME $FILENAME.asc |
133 | 125 | env: |
134 | | - # using this token rather than github.token due to `release not found` bug |
135 | | - # https://github.com/pkgxdev/cli/issues/5252 |
136 | | - GH_TOKEN: ${{ secrets.GH_TOKEN }} |
137 | | - GH_REPO: pkgxdev/pkgx |
| 126 | + GH_TOKEN: ${{ github.token }} |
0 commit comments