2021-05-21 05:44:57 +00:00
|
|
|
name: tailer-ape
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
2023-06-29 12:53:36 +00:00
|
|
|
paths-ignore:
|
2023-07-14 16:15:59 +00:00
|
|
|
- docs
|
|
|
|
- README.md
|
|
|
|
- NEWS.md
|
2021-05-21 05:44:57 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-04-09 16:18:32 +00:00
|
|
|
- uses: actions/checkout@v3
|
2021-05-21 05:44:57 +00:00
|
|
|
- name: update apt
|
|
|
|
run: sudo apt-get update
|
|
|
|
- name: Install packages
|
|
|
|
run: >-
|
2023-07-14 16:15:59 +00:00
|
|
|
wget https://github.com/tstack/cosmopolitan/releases/download/v1.0stack/cosmopolitan-amalgamation-1.0-stack.zip &&
|
|
|
|
unzip cosmopolitan-amalgamation-1.0-stack.zip
|
2021-05-21 05:44:57 +00:00
|
|
|
- name: Build
|
|
|
|
run: >-
|
|
|
|
gcc -g -Os -static -nostdlib -nostdinc -fno-pie -no-pie -mno-red-zone
|
2023-07-14 16:15:59 +00:00
|
|
|
-fno-omit-frame-pointer -pg -mnop-mcount
|
2021-05-21 05:44:57 +00:00
|
|
|
-o tailer.dbg -I src/tailer
|
2021-05-21 14:54:12 +00:00
|
|
|
src/tailer/tailer.main.c src/tailer/tailer.c src/tailer/sha-256.c
|
2023-07-14 16:15:59 +00:00
|
|
|
-fuse-ld=bfd -Wl,-T,ape.lds
|
|
|
|
-include cosmopolitan.h crt.o ape.o cosmopolitan.a
|
2021-05-21 05:44:57 +00:00
|
|
|
- name: Objcopy
|
2021-05-22 01:15:35 +00:00
|
|
|
run: objcopy -S -O binary tailer.dbg src/tailer/tailer.ape
|
|
|
|
- uses: stefanzweifel/git-auto-commit-action@v4
|
|
|
|
with:
|
|
|
|
# Optional, but recommended
|
|
|
|
# Defaults to "Apply automatic changes"
|
|
|
|
commit_message: Update tailer
|
|
|
|
file_pattern: src/tailer/tailer.ape
|