Rejbasket/update nodejs version (#2798)

* updated nodejs version to 20 for builds

* upgraded actions upload download cache to version 4

* setup-python upgrade to v5 setup-msbuild to v2

* release action change fix nodejs version issue

* updated versions checkout and setup-python

---------

Co-authored-by: rejbasket <rejbasket@users.noreply.github.com>
pull/2803/head
rejbasket 2024-03-24 09:12:18 +01:00 zatwierdzone przez GitHub
rodzic 88278d0c07
commit b59add2704
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
2 zmienionych plików z 34 dodań i 34 usunięć

Wyświetl plik

@ -10,19 +10,19 @@ jobs:
linux: linux:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
- uses: actions/setup-python@v4 - uses: actions/setup-python@v5
with: with:
python-version: '3.8.x' python-version: '3.8.x'
- uses: actions/setup-node@v3 - uses: actions/setup-node@v4
with: with:
node-version: '16.x' node-version: 20
- uses: ruby/setup-ruby@v1 - uses: ruby/setup-ruby@v1
with: with:
ruby-version: 3.1 ruby-version: 3.1
- uses: actions/cache@v3 - uses: actions/cache@v4
id: pip-cache id: pip-cache
with: with:
path: ~/.cache/pip path: ~/.cache/pip
@ -34,7 +34,7 @@ jobs:
id: yarn-cache-dir-path id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3 - uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with: with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
@ -90,24 +90,24 @@ jobs:
env: env:
BUILD: linux BUILD: linux
INKSTITCH_GPG_KEY: ${{ secrets.INKSTITCH_GPG_KEY }} INKSTITCH_GPG_KEY: ${{ secrets.INKSTITCH_GPG_KEY }}
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: inkstitch-linux name: inkstitch-linux
path: artifacts path: artifacts
windows32: windows32:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
- uses: actions/setup-node@v3 - uses: actions/setup-node@v4
with: with:
node-version: '16.x' node-version: 20
- uses: actions/setup-python@v4 - uses: actions/setup-python@v5
with: with:
python-version: '3.8.x' python-version: '3.8.x'
architecture: 'x86' architecture: 'x86'
- uses: microsoft/setup-msbuild@v1.3.1 - uses: microsoft/setup-msbuild@v2
- name: install dependencies - name: install dependencies
shell: bash shell: bash
run: | run: |
@ -152,24 +152,24 @@ jobs:
with: with:
certificate: '${{ secrets.INKSTITCH_CODE_SIGNING_CERTIFICATE }}' certificate: '${{ secrets.INKSTITCH_CODE_SIGNING_CERTIFICATE }}'
folder: 'artifacts' folder: 'artifacts'
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: inkstitch-windows32 name: inkstitch-windows32
path: artifacts path: artifacts
windows64: windows64:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
- uses: actions/setup-node@v3 - uses: actions/setup-node@v4
with: with:
node-version: '16.x' node-version: 20
- uses: actions/setup-python@v4 - uses: actions/setup-python@v5
with: with:
python-version: '3.8.x' python-version: '3.8.x'
architecture: 'x64' architecture: 'x64'
- uses: microsoft/setup-msbuild@v1.3.1 - uses: microsoft/setup-msbuild@v2
- name: install dependencies - name: install dependencies
shell: bash shell: bash
run: | run: |
@ -208,22 +208,22 @@ jobs:
with: with:
certificate: '${{ secrets.INKSTITCH_CODE_SIGNING_CERTIFICATE }}' certificate: '${{ secrets.INKSTITCH_CODE_SIGNING_CERTIFICATE }}'
folder: 'artifacts' folder: 'artifacts'
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: inkstitch-windows64 name: inkstitch-windows64
path: artifacts path: artifacts
mac: mac:
runs-on: macos-12 runs-on: macos-12
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
- uses: actions/setup-python@v4 - uses: actions/setup-python@v5
with: with:
python-version: '3.9.x' python-version: '3.9.x'
- uses: actions/setup-node@v3 - uses: actions/setup-node@v4
with: with:
node-version: '16.x' node-version: 20
- name: install dependencies - name: install dependencies
shell: bash shell: bash
run: | run: |
@ -270,7 +270,7 @@ jobs:
NOTARY_PASSWORD: ${{ secrets.INKSTITCH_NOTARIZE_PASS }} NOTARY_PASSWORD: ${{ secrets.INKSTITCH_NOTARIZE_PASS }}
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: inkstitch-mac name: inkstitch-mac
path: artifacts path: artifacts
@ -296,36 +296,36 @@ jobs:
echo "title=development build of $branch" >> $GITHUB_ENV echo "title=development build of $branch" >> $GITHUB_ENV
fi fi
- name: download linux - name: download linux
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: 'inkstitch-linux' name: 'inkstitch-linux'
path: 'artifacts/' path: 'artifacts/'
- name: download windows32 - name: download windows32
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: 'inkstitch-windows32' name: 'inkstitch-windows32'
path: 'artifacts/' path: 'artifacts/'
if: always() if: always()
- name: download windows64 - name: download windows64
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: 'inkstitch-windows64' name: 'inkstitch-windows64'
path: 'artifacts/' path: 'artifacts/'
if: always() if: always()
- name: download mac - name: download mac
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: 'inkstitch-mac' name: 'inkstitch-mac'
path: 'artifacts/' path: 'artifacts/'
if: always() if: always()
- name: create/update release - name: create/update release
uses: "marvinpinto/action-automatic-releases@latest" uses: softprops/action-gh-release@v2
if: always() if: always()
with: with:
repo_token: "${{secrets.GITHUB_TOKEN}}" token: "${{secrets.GITHUB_TOKEN}}"
automatic_release_tag: "${{env.release_tag}}" tag_name: "${{env.release_tag}}"
prerelease: "${{env.prerelease}}" prerelease: "${{env.prerelease}}"
title: "${{env.title}}" name: "${{env.title}}"
files: | files: |
artifacts/*.exe artifacts/*.exe
artifacts/*.pkg artifacts/*.pkg

Wyświetl plik

@ -6,7 +6,7 @@ jobs:
crowdin: crowdin:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
ref: main ref: main
@ -14,7 +14,7 @@ jobs:
- name: checkout submodules - name: checkout submodules
run: | run: |
git submodule update --init --recursive git submodule update --init --recursive
- uses: actions/setup-python@v4 - uses: actions/setup-python@v5
with: with:
python-version: '3.8.x' python-version: '3.8.x'
- env: - env: