Skip to content

Commit

Permalink
feat(ci): add test on push
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Apr 4, 2024
1 parent c5d5de2 commit a3f0a4e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env:
GITHUB_TOKEN: ${{ github.token }}

jobs:
my-job:
release:
name: Build on Push Tag 🚀
runs-on: ubuntu-latest
steps:
Expand All @@ -27,6 +27,7 @@ jobs:
run: |
gcc -g -Os -static -nostdlib -nostdinc -fno-pie -no-pie -mno-red-zone \
-fno-omit-frame-pointer -pg -mnop-mcount -D__cosmopolitan \
-DBASE16384_VERSION="${{ github.ref }}" -DBASE16384_VERSION_DATE="`date +"%Y%b/%d"`"\
-o base16384.com.dbg base16384.c file.c base1432.c -fuse-ld=bfd -Wl,-T,ape.lds \
-include cosmopolitan.h crt.o ape.o cosmopolitan.a
objcopy -S -O binary base16384.com.dbg base16384.com
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: test
on: [ push ]

jobs:
test:
name: Run CMake Test 🧪
runs-on: ubuntu-latest
steps:

- name: Check out code
uses: actions/checkout@v2

- name: Set up Build tools
run: |
sudo apt-get update
sudo apt-get install -y gcc cmake
- name: Build and Run Tests
run: |
mkdir build
cd build
cmake -DBUILD=test ..
make
make test

0 comments on commit a3f0a4e

Please sign in to comment.