1
1
name : FDP C++ API
2
2
3
- on : [push]
3
+ on : [push, workflow_dispatch ]
4
4
5
5
jobs :
6
6
Build_Ubuntu :
9
9
strategy :
10
10
fail-fast : false
11
11
steps :
12
- - uses : actions/checkout@v2
13
- - uses : actions/setup-python@v2
12
+ - uses : actions/checkout@v3
13
+ - uses : actions/setup-python@v4
14
14
with :
15
15
python-version : " 3.9"
16
16
architecture : " x64"
20
20
- name : Install local registry
21
21
run : curl -fsSL https://data.scrc.uk/static/localregistry.sh | /bin/bash -s -- -b main
22
22
- name : Checkout FAIRDataPipeline/FAIR-CLI
23
- uses : actions/checkout@v2
23
+ uses : actions/checkout@v3
24
24
with :
25
25
repository : FAIRDataPipeline/FAIR-CLI
26
26
path : FAIR-CLI
47
47
run : |
48
48
cmake -Bbuild -DFDPAPI_BUILD_TESTS=ON -DFDPAPI_CODE_COVERAGE=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=install
49
49
- name : Fetch cache
50
- uses : actions/cache@v2.1.5
50
+ uses : actions/cache@v3
51
51
with :
52
52
path : sonarCache
53
53
key : ${{ runner.os }}-sonarCache-${{ github.sha }}
98
98
strategy :
99
99
fail-fast : false
100
100
steps :
101
- - uses : actions/checkout@v2
101
+ - uses : actions/checkout@v3
102
102
- name : Install Dependencies
103
103
run : |
104
104
brew install cmake
@@ -120,7 +120,7 @@ jobs:
120
120
strategy :
121
121
fail-fast : false
122
122
steps :
123
- - uses : actions/checkout@v2
123
+ - uses : actions/checkout@v3
124
124
- uses : ilammy/msvc-dev-cmd@v1
125
125
- name : Configure Library
126
126
run : |
@@ -134,25 +134,41 @@ jobs:
134
134
cmake --build build_from_install --config=Release
135
135
Build_GCC_4_8 :
136
136
name : Build GCC 4.8
137
- runs-on : ubuntu-18.04
138
- steps :
139
- - uses : actions/checkout@v2
140
- - uses : actions/setup-python@v2
137
+ runs-on : ubuntu-latest
138
+ container :
139
+ image : ubuntu:18.04
140
+ options : --user root
141
+ steps :
142
+ - uses : actions/setup-python@v4
141
143
with :
142
144
python-version : " 3.9"
143
145
architecture : " x64"
144
- - name : Set up GCC
145
- uses : egor-tensin/setup-gcc@v1
146
- with :
147
- version : 4.8
148
- platform : x64
146
+ - name : Setup GCC 4.8
147
+ run : |
148
+ apt update
149
+ apt install build-essential libssl-dev git -y
150
+ git clone https://github.com/Kitware/CMake/
151
+ cd CMake
152
+ ./bootstrap && make && make install
153
+ cmake --version
154
+ apt install g++-4.8 gcc-4.8 -y
155
+ rm /usr/bin/gcc
156
+ rm /usr/bin/g++
157
+ ln -s /usr/bin/gcc-4.8 /usr/bin/gcc
158
+ ln -s /usr/bin/g++-4.8 /usr/bin/g++
159
+ gcc --version
160
+ g++ --version
161
+ cmake --version
162
+ - uses : actions/checkout@v3
149
163
- name : Install Dependencies
150
164
run : |
151
- sudo apt update
152
- sudo apt install -y lcov curl libcurl4-openssl-dev gcovr
165
+ apt install -y lcov curl libcurl4-openssl-dev gcovr
153
166
- name : Configure Library
154
167
run : |
168
+ cd $GITHUB_WORKSPACE
169
+ ls
155
170
cmake -Bbuild
156
171
- name : Build Library
157
- run : |
172
+ run : |
173
+ cd $GITHUB_WORKSPACE
158
174
cmake --build build
0 commit comments