File tree Expand file tree Collapse file tree 2 files changed +14
-21
lines changed Expand file tree Collapse file tree 2 files changed +14
-21
lines changed Original file line number Diff line number Diff line change 11
11
12
12
jobs :
13
13
build :
14
- runs-on : ubuntu-latest
14
+ runs-on : ubuntu-22.04
15
15
steps :
16
16
- name : Install dependencies
17
17
run : |
18
- sudo apt update
19
- sudo apt install -y libsdl2-dev libboost-dev libfreetype6-dev zlib1g-dev libpugixml-dev
18
+ sudo apt-get update
19
+ sudo apt-get install -y libsdl2-dev libboost-dev libfreetype6-dev zlib1g-dev libpugixml-dev
20
20
21
21
- name : Extract branch name
22
22
shell : bash
23
- run : echo "##[set-output name= branch;] $(echo ${GITHUB_REF#refs/heads/})"
23
+ run : echo "branch= $(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
24
24
id : extract_branch
25
25
26
- - uses : actions/checkout@v2
26
+ - uses : actions/checkout@v3
27
27
with :
28
28
repository : GamedevFramework/gf
29
29
submodules : recursive
30
30
ref : ${{ steps.extract_branch.outputs.branch }}
31
31
32
- - name : CMake hack for Ubuntu
33
- shell : bash
34
- working-directory : ${{ github.workspace }}
35
- run : |
36
- cat library/CMakeLists.txt | sed 's/SDL2::SDL2/\$\{SDL2_LIBRARIES\}/' | tee library/CMakeLists.txt > /dev/null
37
- echo 'include_directories(SYSTEM ${SDL2_INCLUDE_DIRS})' >> library/CMakeLists.txt
38
-
39
32
- name : Configure gf
40
- run : cmake -DGF_BUILD_GAMES=OFF -DGF_BUILD_EXAMPLES=OFF -DGF_BUILD_DOCUMENTATION=OFF -DGF_SINGLE_COMPILTATION_UNIT =OFF -DGF_DEBUG=OFF -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -S ${{ github.workspace }} -B ${{ github.workspace }}/build
33
+ run : cmake -DGF_BUILD_GAMES=OFF -DGF_BUILD_EXAMPLES=OFF -DGF_BUILD_DOCUMENTATION=OFF -DGF_DEBUG =OFF -DCMAKE_UNITY_BUILD=ON -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -S ${{ github.workspace }} -B ${{ github.workspace }}/build
41
34
42
35
- name : Build gf
43
36
run : cmake --build ${{ github.workspace }}/build --config ${{ env.BUILD_TYPE }} --parallel
50
43
working-directory : ${{github.workspace}}/build
51
44
run : cpack --config CPackConfig.cmake -C ${{env.BUILD_TYPE}}
52
45
53
- - uses : actions/upload-artifact@v2
46
+ - uses : actions/upload-artifact@v3
54
47
with :
55
48
name : deb-file
56
49
path : ${{github.workspace}}/build/*.deb
Original file line number Diff line number Diff line change 8
8
9
9
env :
10
10
BUILD_TYPE : Release
11
- VCPKG_COMMIT : af2287382b1991dbdcb7e5112d236f3323b9dd7a
11
+ VCPKG_COMMIT : f14984af3738e69f197bf0e647a8dca12de92996
12
12
VCPKG_DEFAULT_BINARY_CACHE : ${{ github.workspace }}\vcpkg\binary-cache
13
13
14
14
jobs :
@@ -17,12 +17,12 @@ jobs:
17
17
steps :
18
18
- name : vcpkg cache
19
19
id : cache-vcpkg
20
- uses : actions/cache@v2.1.6
20
+ uses : actions/cache@v3
21
21
with :
22
22
path : vcpkg
23
- key : ${{ runner.os }}-vcpkg-${{ env.VCPKG_COMMIT }}-v1
23
+ key : ${{ runner.os }}-vcpkg-${{ env.VCPKG_COMMIT }}
24
24
25
- - uses : actions/checkout@v2
25
+ - uses : actions/checkout@v3
26
26
if : steps.cache-vcpkg.outputs.cache-hit != 'true'
27
27
with :
28
28
repository : Microsoft/vcpkg
@@ -40,10 +40,10 @@ jobs:
40
40
41
41
- name : Extract branch name
42
42
shell : bash
43
- run : echo "##[set-output name= branch;] $(echo ${GITHUB_REF#refs/heads/})"
43
+ run : echo "branch= $(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
44
44
id : extract_branch
45
45
46
- - uses : actions/checkout@v2
46
+ - uses : actions/checkout@v3
47
47
with :
48
48
repository : GamedevFramework/gf
49
49
submodules : recursive
54
54
shell : cmd
55
55
run : |
56
56
set PATH=%PATH%;${{github.workspace}}/gf/build/library/${{ env.BUILD_TYPE }}
57
- cmake -DGF_BUILD_GAMES =OFF -DGF_BUILD_EXAMPLES =OFF -DGF_BUILD_DOCUMENTATION =OFF -DGF_SINGLE_COMPILTATION_UNIT =OFF -DGF_DEBUG=OFF -DGF_VCPKG=ON -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/vcpkg/scripts/buildsystems/vcpkg.cmake -S ${{ github.workspace }}/gf -B ${{ github.workspace }}/gf/build
57
+ cmake -DGF_USE_EMBEDDED_LIBS =OFF -DGF_BUILD_GAMES =OFF -DGF_BUILD_EXAMPLES =OFF -DGF_BUILD_DOCUMENTATION =OFF -DGF_DEBUG=OFF -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/vcpkg/scripts/buildsystems/vcpkg.cmake -S ${{ github.workspace }}/gf -B ${{ github.workspace }}/gf/build
58
58
59
59
- name : Build gf
60
60
shell : cmd
You can’t perform that action at this time.
0 commit comments