InfiniTime.git

commit 7508dd74eeeed487629d06dad714af067aeb7800

Author: Riku Isokoski <riksu9000@gmail.com>

Update workflow dependencies (#1504)

* Update workflow dependencies

ubuntu-latest vm has been updated from 20.04 to 22.04.
To avoid sudden issues, use 22.04 explicitly.
CMake doesn't need to be updated on 22.04, but ninja must be installed separately in the simulator workflow.
actions/checkout@v2 uses deprecated Node.js 12.
Update to v3 which uses 16

 .github/workflows/docker.yml | 2 +-
 .github/workflows/main.yml | 11 ++++++-----


diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index 8d45fe08648056b316f4f7d121c11ae226413096..7af815156627b6e197532cb1938b82684b7955da 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -14,7 +14,7 @@   workflow_dispatch:
 
 jobs:
   build:
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-22.04
     env:
       USERNAME: infinitime
     steps:




diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 932eb06b97c3e587712305e4d259d39405aca9de..ef8d3977278bdda13c67f2909c2dcaf10b4dc058 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -59,22 +59,23 @@           name: InfiniTime resources ${{ github.head_ref }}
           path: ./build/output/infinitime-resources-*.zip
 
   build-simulator:
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-22.04
     steps:
-    - name: Install cmake
-      uses: lukka/get-cmake@v3.18.3
-
     - name: Install SDL2 development package
       run:  |
         sudo apt-get update
         sudo apt-get -y install libsdl2-dev
 
+    - name: Install Ninja
+      run:  |
+        sudo apt-get -y install ninja-build
+
     - name: Install lv_font_conv
       run:
         npm i -g lv_font_conv@1.5.2
 
     - name: Checkout source files
-      uses: actions/checkout@v2
+      uses: actions/checkout@v3
       with:
         submodules: recursive