ci: push shanmite/pkg-arm64

This commit is contained in:
shanmite 2022-10-29 20:37:09 +08:00
parent 989f836ba2
commit d9cecbe163
2 changed files with 2 additions and 3 deletions

View File

@ -61,7 +61,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: "Pkg this" - name: "Pkg this"
run: | run: |
sudo podman run --rm --privileged multiarch/qemu-user-static --reset -p yes
npm run pkg arm npm run pkg arm
- name: "Upload to artifact" - name: "Upload to artifact"
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2

View File

@ -26,8 +26,8 @@ fi
mkdir -p $TARGET_DIR mkdir -p $TARGET_DIR
if [[ "$1" == *"arm"* ]]; then if [[ "$1" == *"arm"* ]]; then
podman build -f Dockerfile.pkg-arm64 -t pkg-arm64 sudo podman run --rm --privileged multiarch/qemu-user-static --reset -p yes
podman run -it --rm -v ${PWD}/dist:/root/lottery/dist pkg-arm64 podman run -it --rm -v ${PWD}/dist:/root/lottery/dist shanmite/pkg-arm64
elif [[ "$1" == *"x64"* ]]; then elif [[ "$1" == *"x64"* ]]; then
OUTFILE="$TARGET_DIR/lottery-auto-script-$1" OUTFILE="$TARGET_DIR/lottery-auto-script-$1"
npx pkg -t "$1" -o $OUTFILE . npx pkg -t "$1" -o $OUTFILE .