Skip to content

Upgrade Github actions versions to fix deprecation warnings #600

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ jobs:
git config --global core.autocrlf false
git config --global core.eol lf

- uses: actions/checkout@v2.3.4
- uses: actions/checkout@v3

- name: Cache OCaml's opam
uses: actions/cache@v2.1.5
uses: actions/cache@v3
with:
path: ~/.opam
key: ${{matrix.os}}-rescript-vscode-v3
key: ${{matrix.os}}-rescript-vscode-v4

- name: Use OCaml
uses: ocaml/setup-ocaml@v2
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
mv rescript-editor-analysis.exe ${{matrix.artifact-folder}}
tar -cvf binary.tar ${{matrix.artifact-folder}}

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: ${{matrix.os}}
path: analysis/binary.tar
Expand All @@ -86,42 +86,42 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2.3.4
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v2.1.5
uses: actions/setup-node@v3
with:
node-version: 14.4.0
node-version: 16

- run: npm ci
- run: npm run compile

- name: Download MacOS binary
uses: actions/download-artifact@v3.0.0
uses: actions/download-artifact@v3
with:
name: macos-latest
path: ./server/analysis_binaries
- run: tar -xvf binary.tar
working-directory: ./server/analysis_binaries

- name: Download MacOS ARM binary
uses: actions/download-artifact@v3.0.0
uses: actions/download-artifact@v3
with:
name: macos-arm
path: ./server/analysis_binaries
- run: tar -xvf binary.tar
working-directory: ./server/analysis_binaries

- name: Download Linux binary
uses: actions/download-artifact@v3.0.0
uses: actions/download-artifact@v3
with:
name: ubuntu-20.04
path: ./server/analysis_binaries
- run: tar -xvf binary.tar
working-directory: ./server/analysis_binaries

- name: Download Windows binary
uses: actions/download-artifact@v3.0.0
uses: actions/download-artifact@v3
with:
name: windows-latest
path: ./server/analysis_binaries
Expand Down Expand Up @@ -163,19 +163,19 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
run: npx vsce package -o rescript-vscode-${{ steps.tag_name.outputs.tag }}.vsix ${{ steps.tag_name.outputs.tag }} --no-git-tag-version

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: github.ref != 'refs/heads/master'
with:
name: rescript-vscode-${{ steps.vars.outputs.sha_short }}.vsix
path: rescript-vscode-${{ steps.vars.outputs.sha_short }}.vsix

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: github.ref == 'refs/heads/master'
with:
name: rescript-vscode-${{ steps.increment_pre_release.outputs.new_version }}.vsix
path: rescript-vscode-${{ steps.increment_pre_release.outputs.new_version }}.vsix

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: startsWith(github.ref, 'refs/tags/')
with:
name: rescript-vscode-${{ steps.tag_name.outputs.tag }}.vsix
Expand Down