From 133a07ee0338f7107a1b629822a17ade96b4e5d9 Mon Sep 17 00:00:00 2001 From: Francois Daoust Date: Wed, 11 Dec 2024 19:35:12 +0100 Subject: [PATCH 1/2] Bump versions of dependencies used in workflow Bikeshed now requires Python >= 3.9, which in turn requires moving to a more recent version of Ubuntu. Using "latest" here as that's unlikely going to ever trigger an issue. Also using that opportunity to bump versions of other actions used in the workflow. --- .github/workflows/auto-publish.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/auto-publish.yml b/.github/workflows/auto-publish.yml index 0bfa5a5..2f70864 100644 --- a/.github/workflows/auto-publish.yml +++ b/.github/workflows/auto-publish.yml @@ -6,9 +6,9 @@ on: jobs: main: name: Build, Validate and Deploy - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: w3c/spec-prod@v2 with: GH_PAGES_BRANCH: gh-pages @@ -16,10 +16,10 @@ jobs: BUILD_FAIL_ON: link-error check-cddl-consistency: name: Verify that the generated CDDL files are in sync with the inline CDDL - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 18.x - name: Extract CDDL @@ -28,9 +28,9 @@ jobs: run: git diff --exit-code check-cddl-validity: name: Verify that the generated CDDL files are valid - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Get cddl version run: curl -s https://crates.io/api/v1/crates/cddl | python3 -c "import sys, json; print(json.load(sys.stdin)['crate']['max_stable_version'])" | tee cddl.txt - name: "Cache rust binaries" @@ -53,10 +53,10 @@ jobs: run: ./scripts/test-cddl.sh check-json-schema-validity: name: Verify that the JSON schema files are valid - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 18 - run: npm ci From cc89c737bae83da6a0e0952e140745267fa987b2 Mon Sep 17 00:00:00 2001 From: Mike Pennisi Date: Tue, 17 Dec 2024 21:45:48 -0500 Subject: [PATCH 2/2] Specify Ubuntu version --- .github/workflows/auto-publish.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/auto-publish.yml b/.github/workflows/auto-publish.yml index 2f70864..789115d 100644 --- a/.github/workflows/auto-publish.yml +++ b/.github/workflows/auto-publish.yml @@ -6,7 +6,7 @@ on: jobs: main: name: Build, Validate and Deploy - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - uses: w3c/spec-prod@v2 @@ -16,7 +16,7 @@ jobs: BUILD_FAIL_ON: link-error check-cddl-consistency: name: Verify that the generated CDDL files are in sync with the inline CDDL - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 @@ -28,7 +28,7 @@ jobs: run: git diff --exit-code check-cddl-validity: name: Verify that the generated CDDL files are valid - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - name: Get cddl version @@ -53,7 +53,7 @@ jobs: run: ./scripts/test-cddl.sh check-json-schema-validity: name: Verify that the JSON schema files are valid - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4