forked from sofa-framework/sofa
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (31 loc) · 982 Bytes
/
ci.yml
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
name: Compile SOFA and run Tests
on:
workflow_dispatch:
pull_request:
push:
jobs:
setup_build:
runs-on: [self-hosted, sh-ubuntu]
steps:
- name: Clone SOFA and CI
shell: bash
run: |
WORKSPACE=$(cat $GITHUB_WORKFLOW_SHA)
cd $WORKSPACE
echo "Cloning SOFA at commit $GITHUB_WORKFLOW_SHA"
mkdir $WORKSPACE/src && cd $WORKSPACE/src
SRC_DIR=$(pwd)
git init
git remote add origin https://www.github.com/$GITHUB_REPOSITORY_OWNER/sofa.git
git fetch origin $GITHUB_WORKFLOW_SHA
git checkout FETCH_HEAD
cd $WORKSPACE
echo "Cloning CI"
mkdir $WORKSPACE/ci && cd $WORKSPACE/ci
CI_DIR=$(pwd)
git init
git remote add origin https://www.github.com/sofa-framework/ci.git
git fetch origin master
git checkout FETCH_HEAD
cd $WORKSPACE
mkdir build