mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-04 21:01:17 +08:00
ci: push shanmite/pkg-arm64
This commit is contained in:
parent
989f836ba2
commit
d9cecbe163
1
.github/workflows/pkg.yml
vendored
1
.github/workflows/pkg.yml
vendored
@ -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
|
||||||
|
|||||||
@ -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 .
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user