From 23a711041a0f1f97668cb7bd71218ac299aff214 Mon Sep 17 00:00:00 2001 From: Tim Stack Date: Fri, 14 Jul 2023 06:41:42 -0700 Subject: [PATCH] [build] update cosmo version --- .github/workflows/rpmbuild.yml | 6 +++--- .github/workflows/tailer-ape.yml | 17 +++++++++-------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/rpmbuild.yml b/.github/workflows/rpmbuild.yml index 67e6d83a..929dc46c 100644 --- a/.github/workflows/rpmbuild.yml +++ b/.github/workflows/rpmbuild.yml @@ -5,9 +5,9 @@ on: push: branches: [ master ] paths-ignore: - - docs - - README.md - - NEWS.md + - 'docs/**' + - 'test/**' + - '**.md' tags: - '*' diff --git a/.github/workflows/tailer-ape.yml b/.github/workflows/tailer-ape.yml index e4875078..547fe8e3 100644 --- a/.github/workflows/tailer-ape.yml +++ b/.github/workflows/tailer-ape.yml @@ -4,9 +4,9 @@ on: push: branches: [ master ] paths-ignore: - - docs - - README.md - - NEWS.md + - 'docs/**' + - 'test/**' + - '**.md' jobs: build: @@ -17,16 +17,17 @@ jobs: run: sudo apt-get update - name: Install packages run: >- - wget https://github.com/tstack/cosmopolitan/releases/download/v1.0stack/cosmopolitan-amalgamation-1.0-stack.zip && - unzip cosmopolitan-amalgamation-1.0-stack.zip + wget https://justine.lol/cosmopolitan/cosmopolitan-amalgamation-2.2.zip && + unzip cosmopolitan-amalgamation-2.2.zip - name: Build run: >- gcc -g -Os -static -nostdlib -nostdinc -fno-pie -no-pie -mno-red-zone - -fno-omit-frame-pointer -pg -mnop-mcount + -fno-omit-frame-pointer -pg -mnop-mcount -mno-tls-direct-seg-refs -gdwarf-4 -o tailer.dbg -I src/tailer src/tailer/tailer.main.c src/tailer/tailer.c src/tailer/sha-256.c - -fuse-ld=bfd -Wl,-T,ape.lds - -include cosmopolitan.h crt.o ape.o cosmopolitan.a + -fuse-ld=bfd -Wl,-T,ape.lds -Wl,--gc-sections + -Wl,-z,common-page-size=0x1000 -Wl,-z,max-page-size=0x1000 + -include cosmopolitan.h crt.o ape-no-modify-self.o cosmopolitan.a - name: Objcopy run: objcopy -S -O binary tailer.dbg src/tailer/tailer.ape - uses: stefanzweifel/git-auto-commit-action@v4