Compare commits

...

2 Commits

Author SHA1 Message Date
Phantop 86cc5317c1 attempt actions for building apps 2024-03-08 20:28:37 -05:00
Phantop 272ed9a1d5 mkpacman: use powerpill to not need root 2024-03-08 20:05:26 -05:00
6 changed files with 51 additions and 5 deletions

45
.github/workflows/build.yml vendored Normal file
View File

@ -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 }}

View File

@ -1,7 +1,7 @@
#!/bin/sh
. "$(dirname "$0")"/appmk
part0
LINK=https://api.adoptium.net/v3/binary/latest/$1/ga/linux/x64/jre/hotspot/normal/eclipse
LINK=https://api.adoptium.net/v3/binary/latest/$1/ga/linux/x64/jdk/hotspot/normal/eclipse
shift
ungz
mv "$DIR"/jdk*/* "$DIR"

View File

@ -6,5 +6,5 @@ aria2c "$LINK" -d "$DIR" -o mp3tag
7z x -y -o"$DIR" "$DIR"/mp3tag
mv "$DIR"/Mp3tag.exe "$DIR"/mp3tag
appa
sed -i '5s/ / wine64 /' "$DIR"/AppRun
sed -i '5s/ / wine /' "$DIR"/AppRun
part9

View File

@ -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

View File

@ -2,7 +2,7 @@
. "$(dirname "$0")"/appmk
part0
APP="$1"
sudo pacman -Sw --cachedir "$DIR" "$@"
powerpill -Sw --cachedir "$DIR" "$@"
parallel "tar xf {} -C$DIR" ::: "$DIR"/*.tar.zst
rm -f "$DIR"/*.tar.zst*
appb

View File

@ -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