1
0
Fork 0

Log environment on CI machines

log-env.sh is cross-platform (works on Linux, MacOS and Windows)

log-env.ps1 is Windows-only and requirs specifying pwsh shell, but
provides some Windows-specific information, that might be useful e.g.
for MSVC builds.
This commit is contained in:
Patryk Obara 2019-10-25 22:05:02 +02:00 committed by Patryk Obara
parent e4d18f16ce
commit 52a958270f
4 changed files with 45 additions and 0 deletions

View file

@ -9,6 +9,8 @@ jobs:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: "Log environment"
run: ./scripts/log-env.sh
- run: sudo apt update
- name: "Install packages"
run: sudo apt-get install g++-9 libsdl1.2-dev libsdl-net1.2-dev libsdl-sound1.2-dev
@ -34,6 +36,8 @@ jobs:
os: [ubuntu-18.04, ubuntu-16.04]
steps:
- uses: actions/checkout@v1
- name: "Log environment"
run: ./scripts/log-env.sh
- run: sudo apt update
- name: "Install packages"
run: sudo apt-get install libsdl1.2-dev libsdl-net1.2-dev libsdl-sound1.2-dev
@ -53,6 +57,8 @@ jobs:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: "Log environment"
run: ./scripts/log-env.sh
- run: sudo apt update
- name: "Install packages"
run: sudo apt-get install libsdl1.2-dev libsdl-net1.2-dev libsdl-sound1.2-dev
@ -75,6 +81,8 @@ jobs:
runs-on: macOS-10.14
steps:
- uses: actions/checkout@v1
- name: "Log environment"
run: ./scripts/log-env.sh
- run: brew update
- name: "Install packages"
run: brew install automake libpng sdl sdl_net sdl_sound
@ -94,6 +102,9 @@ jobs:
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
- name: "Log environment"
shell: pwsh
run: .\scripts\log-env.ps1
- name: "Install packages"
shell: pwsh
run: |
@ -113,6 +124,9 @@ jobs:
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
- name: "Log environment"
shell: pwsh
run: .\scripts\log-env.ps1
- name: "Install packages"
shell: pwsh
run: |

View file

@ -9,6 +9,8 @@ jobs:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: "Log environment"
run: ./scripts/log-env.sh
- run: sudo apt update
- name: "Install packages"
run: sudo apt-get install libsdl1.2-dev libsdl-net1.2-dev libsdl-sound1.2-dev python3-setuptools