diff options
| author | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-25 18:24:05 +0000 |
|---|---|---|
| committer | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-25 18:24:05 +0000 |
| commit | e3ab29bb4d7174cae65de2275f19105eb3d93d91 (patch) | |
| tree | 89970111c1be4c3ddd291b720d4fdf496f10b2d5 /.github/workflows/build-ape.yml | |
| parent | 489336b2101bf16edeec7bfc4379408eb19b936e (diff) | |
APE shall never kill APE
Diffstat (limited to '.github/workflows/build-ape.yml')
| -rw-r--r-- | .github/workflows/build-ape.yml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/.github/workflows/build-ape.yml b/.github/workflows/build-ape.yml new file mode 100644 index 0000000..3fe5c17 --- /dev/null +++ b/.github/workflows/build-ape.yml @@ -0,0 +1,45 @@ +name: APE Portable Build + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + workflow_dispatch: + +jobs: + build-ape: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y zip wget + + - name: Setup cosmocc + run: | + wget https://cosmo.zip/pub/cosmocc/cosmocc.zip + mkdir -p $HOME/cosmocc + unzip cosmocc.zip -d $HOME/cosmocc + echo "$HOME/cosmocc/bin" >> $GITHUB_PATH + + - name: Build APE + run: | + # Ensure PATH is updated in this step + export PATH="$HOME/cosmocc/bin:$PATH" + make clean + make ape + + - name: Upload zc.com + uses: actions/upload-artifact@v4 + with: + name: zc-portable + path: out/bin/zc.com + + - name: Upload zc-boot.com + uses: actions/upload-artifact@v4 + with: + name: zc-boot-portable + path: out/bin/zc-boot.com |
