From e8c6627995b5815b102dd44f62db8fdb8799a497 Mon Sep 17 00:00:00 2001 From: C0D3 M4513R <28912031+C0D3-M4513R@users.noreply.github.com> Date: Sun, 29 Sep 2024 21:06:51 +0200 Subject: [PATCH] Fix/ci (#27) * Update checkout and cache to v4 * Use maintained rust setup action * bump node to 22, java to 20 * Fix Setup java name * Use v2 of katyo/publish-crates * Fix cache key * Bump actions/setup-java to v4 --- .github/workflows/ci.yaml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 626eec0..8fb6f76 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,29 +13,26 @@ jobs: steps: - uses: actions/setup-node@v3 with: - node-version: 16 - - uses: actions/checkout@v3 + node-version: 22 + - uses: actions/checkout@v4 - name: 'Cache node_modules' - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: node_modules - key: ${{ runner.os }}-node-v16-${{ hashFiles('**/generate.sh') }} + key: ${{ runner.os }}-node-v22-${{ hashFiles('**/generate.sh') }} restore-keys: | - ${{ runner.os }}-node-v16 + ${{ runner.os }}-node-v22 - name: Install OpenAPI Generator CLI run: npm install @openapitools/openapi-generator-cli - name: Set OpenAPI Generator version run: ./node_modules/\@openapitools/openapi-generator-cli/main.js version-manager set 7.7.0 - - name: Set up JDK 13 - uses: actions/setup-java@v3 + - name: Set up JDK 20 + uses: actions/setup-java@v4 with: - java-version: '13' + java-version: '20' distribution: 'adopt' - name: Install Rustup toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true + uses: moonrepo/setup-rust@v1 - name: Generate SDK Client run: bash ./generate.sh - name: Check version number @@ -50,7 +47,7 @@ jobs: folder: . commit-message: "Upgrade Rust SDK to spec ${{ env.spec_version }}" - name: Deploy to Crates.io - uses: katyo/publish-crates@v1 + uses: katyo/publish-crates@v2 with: registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} args: --allow-dirty