Skip to content

Commit

Permalink
updating actions to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
dhchandw committed Nov 7, 2024
1 parent bf5c7cc commit 8c3cdee
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 37 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/matter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ jobs:
os: [ubuntu-22.04]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.0.0
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
Expand Down Expand Up @@ -62,10 +62,10 @@ jobs:

steps:
- name: Check out Git repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v3.0.0
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
Expand Down Expand Up @@ -158,25 +158,25 @@ jobs:
command_line: npx asar l ./dist/linux-unpacked/resources/app.asar | grep apack.json
contains: 'apack.json'
- name: Archive Linux (x64) .zip file
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: startsWith(matrix.os, 'ubuntu')
with:
name: zap-linux-x64-zip
path: dist/zap-linux-x64.zip
- name: Archive Linux (arm64) .zip file
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: startsWith(matrix.os, 'ubuntu')
with:
name: zap-linux-arm64-zip
path: dist/zap-linux-arm64.zip
- name: Archive Linux .rpm file
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: startsWith(matrix.os, 'ubuntu')
with:
name: zap-linux-x64-rpm
path: dist/zap-linux-x64.rpm
- name: Archive Linux x64 .deb file
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: startsWith(matrix.os, 'ubuntu')
with:
name: zap-linux-x64-deb
Expand All @@ -195,15 +195,15 @@ jobs:
image: connectedhomeip/chip-build:0.6.11

steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: zap-linux-x64-zip

- name: Unpack linux artifact
run: |
mkdir zap-release && cd zap-release && unzip ../zap-linux-x64.zip
# Checkout without actions/checkout@v3 since that one uses a repository specific token
# Checkout without actions/checkout@v4 since that one uses a repository specific token
- name: Checkout Matter SDK
run: |
git clone --depth 1 https://github.com/project-chip/connectedhomeip.git chip_repo
Expand Down
42 changes: 21 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
os: [ubuntu-22.04]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.0.0
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
Expand All @@ -56,9 +56,9 @@ jobs:
os: [ubuntu-22.04]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.0.0
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
Expand All @@ -85,9 +85,9 @@ jobs:
os: [ubuntu-22.04]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.0.0
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
Expand All @@ -107,7 +107,7 @@ jobs:
- run: npm run self-check
- run: npm run test:unit
- name: Upload code coverage artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: jest-coverage
path: jest-coverage/coverage-final.json
Expand All @@ -124,14 +124,14 @@ jobs:
os: [ubuntu-22.04]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.0.0
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Download jest coverage artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: jest-coverage
- run: sudo ./src-script/install-packages-ubuntu
Expand All @@ -153,10 +153,10 @@ jobs:

steps:
- name: Check out Git repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v3.0.0
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
Expand Down Expand Up @@ -397,49 +397,49 @@ jobs:
contains: 'apack.json'

- name: Archive Windows (x64) .zip file
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: startsWith(matrix.os, 'macos')
with:
name: zap-win-x64-zip
path: dist/zap-win-x64.zip
- name: Archive Windows (arm64) .zip file
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: startsWith(matrix.os, 'macos')
with:
name: zap-win-arm64-zip
path: dist/zap-win-arm64.zip
- name: Archive macOS x64 .zip file
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: startsWith(matrix.os, 'macos')
with:
name: zap-mac-x64-zip
path: dist/zap-mac-x64.zip
- name: Archive macOS arm64 .zip file
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: startsWith(matrix.os, 'macos')
with:
name: zap-mac-arm64-zip
path: dist/zap-mac-arm64.zip
- name: Archive Linux (x64) .zip file
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: startsWith(matrix.os, 'ubuntu')
with:
name: zap-linux-x64-zip
path: dist/zap-linux-x64.zip
- name: Archive Linux (arm64) .zip file
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: startsWith(matrix.os, 'ubuntu')
with:
name: zap-linux-arm64-zip
path: dist/zap-linux-arm64.zip
- name: Archive Linux .rpm file
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: startsWith(matrix.os, 'ubuntu')
with:
name: zap-linux-x64-rpm
path: dist/zap-linux-x64.rpm
- name: Archive Linux x64 .deb file
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: startsWith(matrix.os, 'ubuntu')
with:
name: zap-linux-x64-deb
Expand All @@ -451,7 +451,7 @@ jobs:
name: Create Github Release
runs-on: ubuntu-22.04
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
- name: List downloaded files
run: ls -R
- name: Creating Github Release
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ jobs:
os: [ubuntu-22.04]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.0.0
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/zigbee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ jobs:
os: [ubuntu-22.04]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.0.0
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
Expand All @@ -55,7 +55,7 @@ jobs:
run: node ./src-script/gsdk-public-regen.js ./gecko_sdk/ ./regen-pr
- name: Create the temp regen directory for master.
run: mkdir regen-master
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: master
clean: false
Expand All @@ -68,7 +68,7 @@ jobs:
run: node ./src-script/gsdk-public-regen.js ./gecko_sdk/ ./regen-master
- name: Remove genResult files just in case.
run: find ./regen-master -name genResult.json -exec rm -f {} \;
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
clean: false
- name: Diff
Expand Down

0 comments on commit 8c3cdee

Please sign in to comment.