-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.07 KB
/
code_working.yml
File metadata and controls
45 lines (42 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: checking_code_working
on:
push:
branches:
- '*'
env:
BINARIES:
raytracer
MIRROR_URL:
git@github.com:EpitechPromo2027/B-OOP-400-REN-4-1-raytracer-alexis.boitel.git
jobs:
check_compilation:
runs-on: ubuntu-latest
container: epitechcontent/epitest-docker:latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check compilation
run: |
./buildme.sh
- name: Check binary
run: |
if [ ! -f ${{ env.BINARIES }} ]; then
echo "Binary not found"
exit 1
fi
push_to_mirror:
if : github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: check_compilation
runs-on: ubuntu-latest
container: epitechcontent/epitest-docker:latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pixta-dev/repository-mirroring-action@v1
with:
target_repo_url:
${{ env.MIRROR_URL }}
ssh_private_key:
${{ secrets.GIT_SSH_PRIVATE_KEY }}