Skip to content

Commit

Permalink
attempt actions for building apps
Browse files Browse the repository at this point in the history
  • Loading branch information
Phantop committed Mar 12, 2024
1 parent b80fd1e commit f4f6ae8
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 2 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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 }}
3 changes: 2 additions & 1 deletion apps/mknode
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion apps/mkpypy
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit f4f6ae8

Please sign in to comment.