Skip to content

Commit

Permalink
optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
leleliu008 committed Feb 13, 2025
1 parent ae2e166 commit d1f89cd
Showing 1 changed file with 23 additions and 14 deletions.
37 changes: 23 additions & 14 deletions .github/workflows/chroot-alpine-armv7l.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,36 @@ jobs:
runs-on: ubuntu-latest

steps:
- run: |
cat > test.c <<EOF
#include <time.h>
#include <stdio.h>
int main() {
char ts[20];
int ret = snprintf(ts, 20, "%ld", time(NULL));
if (ret < 0) {
perror(NULL);
return 1;
}
puts(ts);
return 0;
}
EOF
- run: |
cat > run.sh <<EOF
set -ex
uname -a
id
pwd
wget https://raw.githubusercontent.com/leleliu008/ppkg/master/ppkg
chmod a+x ppkg
export GITHUB_ACTIONS=true
./ppkg setup --syspm
./ppkg update
./ppkg install xxd
./ppkg bundle xxd .tar.xz --portable
gcc test.c
./a.out
EOF
- run: curl -LO https://raw.githubusercontent.com/alpinelinux/alpine-chroot-install/master/alpine-chroot-install
Expand All @@ -33,8 +47,3 @@ jobs:
- run: /alpine/enter-chroot sh run.sh
- run: /alpine/destroy
- run: ls -l

- uses: actions/upload-artifact@v4
with:
name: xxd---linux-armv7l.tar.xz
path: ./*.tar.xz

0 comments on commit d1f89cd

Please sign in to comment.