Compare commits

..

1 Commits

Author SHA1 Message Date
3362069390 1
All checks were successful
/ build-images (push) Successful in 8s
/ run-tests (push) Successful in 7s
2026-03-18 19:52:29 +02:00
3 changed files with 3 additions and 16 deletions

View File

@ -4,15 +4,12 @@ jobs:
build-images:
runs-on: host-arch-x86_64
steps:
- name: Debug
run: echo '${{toJson(gitea)}}'
- name: Clone repository
run: git clone --revision ${{ gitea.sha }} --depth 1 ${{ gitea.server_url }}/${{ gitea.repository }}
- name: Build GCC container
working-directory: test5
run: docker build . -f Dockerfile -t local/alpine-gcc-${{gitea.sha}}:latest
run: docker build . -f Dockerfile -t local/alpine-gcc-${{gitea.ref_name}}:latest
run-tests:
runs-on: host-arch-x86_64
@ -22,13 +19,4 @@ jobs:
run: git clone --revision ${{ gitea.sha }} --depth 1 ${{ gitea.server_url }}/${{ gitea.repository }}
- name: Run tests
run: docker run -it --rm -v ./test5:/app local/alpine-gcc-${{gitea.sha}}:latest
cleanup:
runs-on: host-arch-x86_64
needs: run-tests
if: ${{ always() }}
steps:
- name: Remove built container images
#if: ${{ always() }}
run: docker image rm local/alpine-gcc-${{gitea.sha}}:latest
run: docker run -it --rm -v ./test5:/app local/alpine-gcc-${{gitea.ref_name}}:latest

1
f.c
View File

@ -26,7 +26,6 @@ void TEST_FREE(void *p)
#define free TEST_FREE
int f(void)
{
malloc(16);
free(malloc(16));
free(malloc(32));
free(malloc(48));

View File

@ -1,5 +1,5 @@
#!/bin/sh
for OPT in s 0 1 2 3; do
for OPT in 2 3; do
echo -- "-O$OPT" && gcc f.c -O$OPT -o f && ./f
done