make linux workflow parallel, add runtime dependencies

This commit is contained in:
Lion Kortlepel
2022-05-26 15:54:23 +02:00
parent b4f97a6da0
commit cc35d83834
+8 -2
View File
@@ -35,12 +35,12 @@ jobs:
- name: Build Server - name: Build Server
working-directory: ${{github.workspace}}/build-linux working-directory: ${{github.workspace}}/build-linux
shell: bash shell: bash
run: cmake --build . --config $BUILD_TYPE -t BeamMP-Server run: cmake --build . --config $BUILD_TYPE -t BeamMP-Server --parallel
- name: Build Tests - name: Build Tests
working-directory: ${{github.workspace}}/build-linux working-directory: ${{github.workspace}}/build-linux
shell: bash shell: bash
run: cmake --build . --config $BUILD_TYPE -t BeamMP-Server-tests run: cmake --build . --config $BUILD_TYPE -t BeamMP-Server-tests --parallel
- name: Archive server artifact - name: Archive server artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
@@ -64,6 +64,12 @@ jobs:
name: BeamMP-Server-linux-tests name: BeamMP-Server-linux-tests
path: ${{github.workspace}} path: ${{github.workspace}}
- name: Install Runtime Dependencies
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y libz rapidjson liblua5.3 libssl libwebsocketpp libcurl4-openssl
- name: Test - name: Test
working-directory: ${{github.workspace}} working-directory: ${{github.workspace}}
shell: bash shell: bash