Update github action images versions #82
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: push | |
jobs: | |
main: | |
name: Run | |
strategy: | |
# Default, disable if you want to debug | |
fail-fast: false | |
matrix: | |
# Latest stable version, update at will | |
os: [ ubuntu-22.04, windows-2022 ] | |
dc: [ dmd-latest, ldc-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: '[Linux] Install dependencies' | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get update && sudo apt-get -y install libglu1-mesa-dev freeglut3-dev mesa-common-dev | |
# Compiler to test with | |
- name: Prepare compiler | |
uses: mihails-strasuns/setup-dlang@v1 | |
with: | |
compiler: ${{ matrix.dc }} | |
# Checkout the repository | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: '[POSIX] Build' | |
if: runner.os != 'Windows' | |
run: | | |
cd examples/sdl | |
dub build --compiler=${{ env.DC }} | |
cd ../renderer | |
dub | |
- name: '[Windows] Build' | |
if: runner.os == 'Windows' | |
run: | | |
cd examples/sdl | |
dub build --compiler=${{ env.DC }} | |
cd ..\renderer | |
dub |