Skip to content

Commit 6ac0a6a

Browse files
committed
wip
1 parent a85c2dd commit 6ac0a6a

2 files changed

Lines changed: 7 additions & 23 deletions

File tree

.github/workflows/ci.docker.yml

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,8 @@ permissions:
1515
packages: write
1616

1717
jobs:
18-
build-pkgx:
19-
runs-on: ubuntu-latest
20-
container: debian:buster-slim
21-
steps:
22-
- uses: actions/checkout@v4
23-
24-
- run: apt-get update && apt-get install -y curl gcc perl make
25-
26-
- uses: dtolnay/rust-toolchain@stable
27-
- run: cargo build --release
28-
29-
- uses: actions/upload-artifact@v4
30-
with:
31-
name: products
32-
path: ./target/release/pkgx
33-
3418
build-docker:
3519
runs-on: ubuntu-latest
36-
needs: build-pkgx
3720
strategy:
3821
matrix:
3922
variety:
@@ -42,15 +25,15 @@ jobs:
4225
- debian
4326
- ubuntu
4427
steps:
45-
- uses: actions/checkout@v4
46-
47-
- uses: actions/download-artifact@v4
28+
- uses: robinraju/release-downloader@v1.11
4829
with:
49-
name: products
30+
fileName: pkgx-*+linux+x86_64.tar.xz
31+
32+
- uses: actions/checkout@v4
5033

5134
- run: |
5235
mkdir products
53-
mv ./pkgx products/$(uname -m)
36+
tar -C products xf pkgx*.tar.xz
5437
curl https://pkgxdev.github.io/pkgm/pkgm.ts -o products/pkgm
5538
5639
- run:

docker/Dockerfile.busybox

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ COPY ./products/* /pkgx/
33
RUN install -m 755 /pkgx/$(uname -m) /usr/local/bin/pkgx
44
RUN install -m 755 /pkgx/pkgm /usr/local/bin/pkgm
55

6-
FROM busybox:glibc AS stage2
6+
# FIXME a newer glibc would be nice, but the libpthread.so we copy in then fails
7+
FROM busybox:1.31-glibc AS stage2
78
COPY --from=stage1 /usr/local/bin/pkgx /usr/local/bin/pkgx
89
COPY --from=stage1 /usr/local/bin/pkgm /usr/local/bin/pkgm
910

0 commit comments

Comments
 (0)