1
This commit is contained in:
parent
bbe03f6360
commit
7c41e9ab2b
@ -1,12 +1,23 @@
|
|||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test1:
|
build-images:
|
||||||
runs-on: host-arch-x86_64
|
runs-on: host-arch-x86_64
|
||||||
|
steps:
|
||||||
|
- name: Clone repository
|
||||||
|
run: git clone --revision ${{ gitea.sha }} --depth 1 ${{ gitea.server_url }}/${{ gitea.repository }}
|
||||||
|
|
||||||
|
- name: Build GCC container
|
||||||
|
run: docker build -t local/alpine-gcc:latest -f Dockerfile
|
||||||
|
|
||||||
|
run-tests:
|
||||||
|
runs-on: host-arch-x86_64
|
||||||
|
needs: build-images
|
||||||
|
#container: local/alpine-gcc:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
run: git clone --revision ${{ gitea.sha }} --depth 1 ${{ gitea.server_url }}/${{ gitea.repository }}
|
run: git clone --revision ${{ gitea.sha }} --depth 1 ${{ gitea.server_url }}/${{ gitea.repository }}
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
working-directory: test5
|
working-directory: test5
|
||||||
run: ./test.sh
|
run: docker run -it --rm -v test5:/app local/alpine-gcc:latest
|
||||||
|
|||||||
@ -1,12 +1,8 @@
|
|||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
RUN apk add gcc
|
RUN apk add gcc
|
||||||
|
|
||||||
RUN mkdir /app
|
RUN mkdir /app
|
||||||
|
|
||||||
COPY *.c /app/
|
|
||||||
COPY test.sh /
|
|
||||||
RUN chmod +x "test.sh"
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
ENTRYPOINT ["/test.sh"]
|
ENTRYPOINT ["test.sh"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user