From ef7b61fbdf84c18b29d1500ac0f38760ad173840 Mon Sep 17 00:00:00 2001 From: Apprentice-Alchemist <53486764+Apprentice-Alchemist@users.noreply.github.com> Date: Tue, 7 Jan 2025 10:48:20 +0100 Subject: [PATCH 1/3] [ci] upgrade to Ubuntu 22.04 --- .github/workflows/main.yml | 12 ++++++------ extra/github-actions/workflows/main.yml | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5896452e267..f6236c6e210 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -100,7 +100,7 @@ jobs: linux-build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 env: PLATFORM: linux64 OPAMYES: 1 @@ -208,7 +208,7 @@ jobs: linux-test: needs: linux-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 env: PLATFORM: linux64 TEST: ${{matrix.target}} @@ -295,7 +295,7 @@ jobs: test-docgen: needs: linux-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 env: PLATFORM: linux64 HXCPP_COMPILE_CACHE: ~/hxcache @@ -374,7 +374,7 @@ jobs: working-directory: ${{github.workspace}}/tests/docgen linux-arm64: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 permissions: packages: write env: @@ -749,7 +749,7 @@ jobs: deploy: if: success() && github.repository_owner == 'HaxeFoundation' && github.event_name != 'pull_request' needs: [linux-test, linux-arm64, mac-test, windows64-test] - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: # this is only needed for to get `COMMIT_DATE`... # maybe https://github.community/t/expose-commit-timestamp-in-the-github-context-data/16460/3 @@ -819,7 +819,7 @@ jobs: deploy_apidoc: if: success() && github.repository_owner == 'HaxeFoundation' && github.event_name != 'pull_request' needs: [linux-test, linux-arm64, mac-test, windows64-test] - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Install dependencies run: | diff --git a/extra/github-actions/workflows/main.yml b/extra/github-actions/workflows/main.yml index cdd462437ca..8ec03bf1184 100644 --- a/extra/github-actions/workflows/main.yml +++ b/extra/github-actions/workflows/main.yml @@ -24,7 +24,7 @@ jobs: @import build-windows.yml linux-build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 env: PLATFORM: linux64 OPAMYES: 1 @@ -114,7 +114,7 @@ jobs: linux-test: needs: linux-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 env: PLATFORM: linux64 TEST: ${{matrix.target}} @@ -183,7 +183,7 @@ jobs: test-docgen: needs: linux-build - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 env: PLATFORM: linux64 HXCPP_COMPILE_CACHE: ~/hxcache @@ -244,7 +244,7 @@ jobs: working-directory: ${{github.workspace}}/tests/docgen linux-arm64: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 permissions: packages: write env: @@ -414,7 +414,7 @@ jobs: deploy: if: success() && github.repository_owner == 'HaxeFoundation' && github.event_name != 'pull_request' needs: [linux-test, linux-arm64, mac-test, windows64-test] - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: # this is only needed for to get `COMMIT_DATE`... # maybe https://github.community/t/expose-commit-timestamp-in-the-github-context-data/16460/3 @@ -484,7 +484,7 @@ jobs: deploy_apidoc: if: success() && github.repository_owner == 'HaxeFoundation' && github.event_name != 'pull_request' needs: [linux-test, linux-arm64, mac-test, windows64-test] - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Install dependencies run: | From 0d2bd5a38b51bd367a8698af053664765947efe6 Mon Sep 17 00:00:00 2001 From: Apprentice-Alchemist <53486764+Apprentice-Alchemist@users.noreply.github.com> Date: Tue, 7 Jan 2025 10:57:07 +0100 Subject: [PATCH 2/3] [ci] PPAs aren't needed anymore. --- .github/workflows/main.yml | 2 -- extra/github-actions/workflows/main.yml | 2 -- 2 files changed, 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f6236c6e210..0e21ca1b451 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -143,8 +143,6 @@ jobs: - name: Install dependencies run: | set -ex - sudo add-apt-repository ppa:avsm/ppa -y # provides OPAM 2 - sudo add-apt-repository ppa:haxe/ocaml -y # provides newer version of mbedtls sudo apt-get update -qqy sudo apt-get install -qqy ocaml-nox opam libpcre2-dev zlib1g-dev libgtk2.0-dev libmbedtls-dev ninja-build diff --git a/extra/github-actions/workflows/main.yml b/extra/github-actions/workflows/main.yml index 8ec03bf1184..5e01e84133d 100644 --- a/extra/github-actions/workflows/main.yml +++ b/extra/github-actions/workflows/main.yml @@ -49,8 +49,6 @@ jobs: - name: Install dependencies run: | set -ex - sudo add-apt-repository ppa:avsm/ppa -y # provides OPAM 2 - sudo add-apt-repository ppa:haxe/ocaml -y # provides newer version of mbedtls sudo apt-get update -qqy sudo apt-get install -qqy ocaml-nox opam libpcre2-dev zlib1g-dev libgtk2.0-dev libmbedtls-dev ninja-build From 6b621d7590f1bc3be3c238df729a008c42121615 Mon Sep 17 00:00:00 2001 From: Apprentice-Alchemist <53486764+Apprentice-Alchemist@users.noreply.github.com> Date: Tue, 7 Jan 2025 11:47:53 +0100 Subject: [PATCH 3/3] [ci] invalidate linux opam cache --- .github/workflows/main.yml | 2 +- extra/github-actions/workflows/main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0e21ca1b451..dc927b8f235 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -118,7 +118,7 @@ jobs: uses: actions/cache@v4 with: path: ~/.opam/ - key: ${{ runner.os }}-${{ matrix.ocaml }}-${{ hashFiles('./haxe.opam', './libs/') }} + key: ${{ runner.os }}-${{ matrix.ocaml }}-${{ hashFiles('./haxe.opam', './libs/') }}-1 - name: Install Neko from S3 run: | diff --git a/extra/github-actions/workflows/main.yml b/extra/github-actions/workflows/main.yml index 5e01e84133d..2960bd15107 100644 --- a/extra/github-actions/workflows/main.yml +++ b/extra/github-actions/workflows/main.yml @@ -42,7 +42,7 @@ jobs: uses: actions/cache@v4 with: path: ~/.opam/ - key: ${{ runner.os }}-${{ matrix.ocaml }}-${{ hashFiles('./haxe.opam', './libs/') }} + key: ${{ runner.os }}-${{ matrix.ocaml }}-${{ hashFiles('./haxe.opam', './libs/') }}-1 @import install-neko-unix.yml