Skip to content

Commit

Permalink
Fix/ci (#27)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
C0D3-M4513R authored Sep 29, 2024
1 parent e1a32ba commit e8c6627
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit e8c6627

Please sign in to comment.