From f4f6ae8e6cf15bdc3be1b9e77fb4f5be59e5e640 Mon Sep 17 00:00:00 2001 From: Phantop Date: Fri, 8 Mar 2024 20:14:55 -0500 Subject: [PATCH] attempt actions for building apps --- .github/workflows/build.yml | 45 +++++++++++++++++++++++++++++++++++++ apps/mknode | 3 ++- apps/mkpypy | 2 +- 3 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..99e50ca --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,45 @@ +name: build +on: + workflow_dispatch: + push: + branches: + - main +jobs: + build: + name: Build + strategy: + fail-fast: false + matrix: + app: + - calibre + - dotnet + - go + - java + - mp3tag + - musikcube + - musl + - node + - pypy + - renpy + - rust + - tex + - wine + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + - name: Install packaging dependencies + run: sudo apt install -y aria2 libarchive-tools + - name: Run stuff + run: | + sudo cp appdwarf /bin + cd apps + sudo wget https://github.com/mhx/dwarfs/releases/download/v0.9.6/dwarfs-universal-0.9.6-Linux-x86_64-clang -O /bin/mkdwarfs + sudo chmod +x /bin/mkdwarfs + ./mk${{ matrix.app }} 21 + - name: Upload build artifact + uses: actions/upload-artifact@v4 + with: + name: ${{ matrix.app }} + path: | + bin/${{ matrix.app }} diff --git a/apps/mknode b/apps/mknode index 31b3b26..6268397 100755 --- a/apps/mknode +++ b/apps/mknode @@ -1,7 +1,8 @@ #!/bin/sh . "$(dirname "$0")"/appmk part0 -LINK=$(curl https://nodejs.org/en/download/current/ | grep -m1 linux | cut -d\" -f4) +LINK=https://nodejs.org/dist/latest/ +LINK=$LINK$(curl $LINK | grep linux-x64.tar.xz | cut -d\" -f2) unxz mv "$DIR"/node*/* "$DIR" appb diff --git a/apps/mkpypy b/apps/mkpypy index df96e1b..ef2e14f 100755 --- a/apps/mkpypy +++ b/apps/mkpypy @@ -1,7 +1,7 @@ #!/bin/sh . "$(dirname "$0")"/appmk part0 -LINK="https://buildbot.pypy.org/nightly/trunk/pypy-c-jit-latest-linux64.tar.bz2" +LINK="$(curl https://www.pypy.org/download.html | grep http.\*linux64.tar.bz2 | head -n1 | cut -d\" -f4)" unbz mv "$DIR"/pypy*/* "$DIR" "$DIR"/bin/pypy -m ensurepip