From eed4d7e15df25b25d9cf37100961a8abdff076e7 Mon Sep 17 00:00:00 2001 From: suve Date: Sun, 29 Aug 2021 20:31:08 +0200 Subject: [PATCH 1/3] Add a GHActions workflow using Ubuntu 20.04 --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..3edb917d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + ubuntu-20-04: + runs-on: ubuntu-20.04 + steps: + - name: Install FPC + run: | + export DEBIAN_FRONTEND=noninteractive + sudo apt update + sudo apt install fpc + - name: Checkout code + uses: actions/checkout@v2 + - name: Compile SDL2 unit + run: fpc sdl2.pas + - name: Compile SDL2_gfx unit + run: fpc sdl2_gfx.pas + - name: Compile SDL2_image unit + run: fpc sdl2_image.pas + - name: Compile SDL2_mixer unit + run: fpc sdl2_mixer.pas + - name: Compile SDL2_net unit + run: fpc sdl2_net.pas + - name: Compile SDL2_ttf unit + run: fpc sdl2_ttf.pas + From 5bb1dc4486d07189912340bf98f6bd65dc3bdea7 Mon Sep 17 00:00:00 2001 From: suve Date: Sun, 29 Aug 2021 20:43:08 +0200 Subject: [PATCH 2/3] Add a GHActions workflow using MacOS 11 --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3edb917d..5c074739 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,27 @@ on: branches: [ master ] jobs: + macos-11: + runs-on: macos-11 + steps: + - name: Install FPC + run: | + brew update + brew install fpc + - name: Checkout code + uses: actions/checkout@v2 + - name: Compile SDL2 unit + run: fpc sdl2.pas + - name: Compile SDL2_gfx unit + run: fpc sdl2_gfx.pas + - name: Compile SDL2_image unit + run: fpc sdl2_image.pas + - name: Compile SDL2_mixer unit + run: fpc sdl2_mixer.pas + - name: Compile SDL2_net unit + run: fpc sdl2_net.pas + - name: Compile SDL2_ttf unit + run: fpc sdl2_ttf.pas ubuntu-20-04: runs-on: ubuntu-20.04 steps: From 0c0a5f0cb81fd125cf69d32cb3a9cf35c9fc8fb9 Mon Sep 17 00:00:00 2001 From: suve Date: Sun, 29 Aug 2021 21:51:35 +0200 Subject: [PATCH 3/3] Add a GHActions workflow using Windows Server 2022 --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5c074739..e041fa14 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,4 +50,24 @@ jobs: run: fpc sdl2_net.pas - name: Compile SDL2_ttf unit run: fpc sdl2_ttf.pas + windows-2022: + runs-on: windows-2022 + steps: + - name: Install Lazarus + run: | + choco install lazarus + - name: Checkout code + uses: actions/checkout@v2 + - name: Compile SDL2 unit + run: C:/lazarus/fpc/*/bin/x86_64-win64/fpc.exe sdl2.pas + - name: Compile SDL2_gfx unit + run: C:/lazarus/fpc/*/bin/x86_64-win64/fpc.exe sdl2_gfx.pas + - name: Compile SDL2_image unit + run: C:/lazarus/fpc/*/bin/x86_64-win64/fpc.exe sdl2_image.pas + - name: Compile SDL2_mixer unit + run: C:/lazarus/fpc/*/bin/x86_64-win64/fpc.exe sdl2_mixer.pas + - name: Compile SDL2_net unit + run: C:/lazarus/fpc/*/bin/x86_64-win64/fpc.exe sdl2_net.pas + - name: Compile SDL2_ttf unit + run: C:/lazarus/fpc/*/bin/x86_64-win64/fpc.exe sdl2_ttf.pas