Skip to content

Commit c177590

Browse files
committed
ts → rs
1 parent 6a195bf commit c177590

File tree

148 files changed

+4845
-7690
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+4845
-7690
lines changed

.gitbook.yaml

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
root:
22
./docs/
33
redirects:
4-
pantry: pantry.md
5-
shell-integration: shell-integration.md
6-
shellcode: shell-integration.md
7-
getting-started: run/anywhere/terminals.md
8-
quickstart: run/anywhere/terminals.md
9-
installing-w/out-brew: run/anywhere/terminals.md
10-
docker: run/anywhere/docker.md
11-
ci-cd: run/anywhere/ci-cd.md
12-
scripts: run/anywhere/scripts.md
13-
editors: run/anywhere/editors.md
14-
pkgx-install: pkgx-install.md
15-
install: pkgx-install.md
16-
support: support.md
17-
dev: dev.md
4+
installing-w/out-brew: getting-started.md
5+
pantry: pkging/pantry.md
6+
getting-started: getting-started.md
7+
quickstart: getting-started.md
8+
189
help/pkg-not-cached: https://github.com/orgs/pkgxdev/discussions/new?category=help&title=pkg-not-cached
1910
help/http-failure: https://github.com/orgs/pkgxdev/discussions/new?category=help&title=http-failure
2011
help/ambiguous-pkgspec: https://github.com/orgs/pkgxdev/discussions/new?category=help&title=ambiguous-pkgspec
12+
13+
# links should never die
14+
docker: getting-started.md
15+
ci-cd: getting-started.md
16+
scripts: scripting.md
17+
run/anywhere/terminals.md: getting-started.md
18+
run/anywhere/docker.md: getting-started.md
19+
run/anywhere/ci-cd.md: getting-started.md
20+
run/anywhere/scripts.md: scripting.md
21+
pantry.md: pkging/pantry.md
22+
pantry-api.md: pkging/pantry.md
23+
pkgx-install: https://github.com/pkgxdev/pkgm
24+
install: https://github.com/pkgxdev/pkgm
25+
support: https://github.com/pkgxdev/discussions
26+
dev: https://github.com/pkgxdev/dev

.github/markdownlint.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/cd.vx.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ jobs:
2020
- uses: fischerscode/tagger@v0
2121
with:
2222
prefix: v
23+
- run: |
24+
git tag -f latest
25+
git push origin latest --force

.github/workflows/cd.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,9 @@ jobs:
1616
qa:
1717
uses: ./.github/workflows/ci.yml
1818

19-
integration-tests:
20-
uses: ./.github/workflows/ci.shellcode.yml
21-
2219
attach-srcs:
2320
runs-on: ubuntu-latest
24-
needs: [qa, integration-tests]
21+
needs: [qa]
2522
env:
2623
FILENAME: pkgx-${{ github.event.inputs.version }}
2724
steps:
@@ -30,8 +27,6 @@ jobs:
3027
path: ${{ env.FILENAME }}
3128
- name: clean
3229
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
3530
- name: include GPG pubkey
3631
run: echo "${{ secrets.GPG_PUBLIC_KEY }}" | base64 -d > $FILENAME/pkgx.dev.pub.asc
3732
- run: tar cJf $FILENAME.tar.xz $FILENAME
@@ -82,25 +77,22 @@ jobs:
8277

8378
- run: pkgx +xz tar xJf pkgx-${{ github.event.inputs.version }}.tar.xz --strip-components=1
8479

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
9081

91-
- run: deno task compile
82+
- run: |
83+
cargo build --release
84+
mv .target/release/pkgx .
85+
strip ./pkgx
9286
9387
- uses: pkgxdev/brewkit/actions/setup-codesign@v0
9488
if: startsWith(matrix.platform.build-id, 'darwin+')
9589
with:
9690
p12-file-base64: ${{ secrets.APPLE_CERTIFICATE_P12 }}
9791
p12-password: ${{ secrets.APPLE_CERTIFICATE_P12_PASSWORD }}
9892

99-
# codesign always fails for deno binaries, even though it
100-
# signs fine. See https://github.com/denoland/deno/issues/575
10193
- run: codesign
10294
--sign "$APPLE_IDENTITY" --force
103-
--preserve-metadata=entitlements,requirements,flags,runtime ./pkgx || true
95+
--preserve-metadata=entitlements,requirements,flags,runtime ./pkgx
10496
env:
10597
APPLE_IDENTITY: ${{ secrets.APPLE_IDENTITY }}
10698

@@ -131,7 +123,4 @@ jobs:
131123
v${{ github.event.inputs.version }}
132124
$FILENAME $FILENAME.asc
133125
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 }}

.github/workflows/ci.md.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)