Update dependencies

This is required after Node 20 changes

Signed-off-by: Saad <saadelasfur@gmail.com>
This commit is contained in:
Saad 2024-11-02 18:11:30 +03:00
parent 7e063cedff
commit a8c1df2b71
No known key found for this signature in database
GPG Key ID: E13CF3BEE10D0E4A
2 changed files with 25 additions and 22 deletions

View File

@ -61,10 +61,11 @@ jobs:
echo "Makefile Name: ${{ github.event.inputs.MAKEFILE_NAME }}" echo "Makefile Name: ${{ github.event.inputs.MAKEFILE_NAME }}"
echo "Build Target: ${{ github.event.inputs.BUILD_TARGET }}.img" echo "Build Target: ${{ github.event.inputs.BUILD_TARGET }}.img"
echo "::endgroup::" echo "::endgroup::"
# You might want to Checkout your repo first, but not mandatory # You might want to Checkout your repo first, but not mandatory
- name: Check Out - name: Check Out
uses: actions/checkout@v3 uses: actions/checkout@v4
# Cleanup The Actions Workspace Using Custom Composite Run Actions # Cleanup The Actions Workspace Using Custom Composite Run Actions
- name: Cleanup - name: Cleanup
uses: rokibhasansagar/slimhub_actions@main uses: rokibhasansagar/slimhub_actions@main
@ -77,17 +78,19 @@ jobs:
sudo apt -y install gperf gcc-multilib gcc-10-multilib g++-multilib g++-10-multilib libc6-dev lib32ncurses5-dev x11proto-core-dev libx11-dev tree lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc bc ccache lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libwxgtk3.0-gtk3-dev libxml2 lzop pngcrush schedtool squashfs-tools imagemagick libbz2-dev lzma ncftp qemu-user-static libstdc++-10-dev libncurses5 python3 sudo apt -y install gperf gcc-multilib gcc-10-multilib g++-multilib g++-10-multilib libc6-dev lib32ncurses5-dev x11proto-core-dev libx11-dev tree lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc bc ccache lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libwxgtk3.0-gtk3-dev libxml2 lzop pngcrush schedtool squashfs-tools imagemagick libbz2-dev lzma ncftp qemu-user-static libstdc++-10-dev libncurses5 python3
- name: Install OpenJDK - name: Install OpenJDK
uses: actions/setup-java@v3 uses: actions/setup-java@v4
with: with:
distribution: 'zulu' distribution: 'zulu'
java-version: '8' java-version: '11'
- name: Setup SSH Keys - name: Setup SSH Keys
if: ${{ startsWith(github.event.inputs.MANIFEST_URL, 'git@github.com') }} if: ${{ startsWith(github.event.inputs.MANIFEST_URL, 'git@github.com') ||
uses: webfactory/ssh-agent@v0.5.4 startsWith(github.event.inputs.DEVICE_TREE_URL, 'git@github.com') ||
startsWith(github.event.inputs.COMMON_TREE_URL, 'git@github.com') }}
uses: webfactory/ssh-agent@v0.9.0
with: with:
ssh-private-key: | ssh-private-key: |
${{ secrets.SSH_PRIVATE_KEY }} ${{ secrets.SSH_PRIVATE_KEY }}
- name: Install repo - name: Install repo
run: | run: |
@ -95,7 +98,7 @@ jobs:
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo chmod a+x ~/bin/repo
sudo ln -sf ~/bin/repo /usr/bin/repo sudo ln -sf ~/bin/repo /usr/bin/repo
- name: Initialize repo - name: Initialize repo
run: | run: |
mkdir workspace mkdir workspace
@ -105,12 +108,12 @@ jobs:
git config --global user.email "azwhikaru+37921907@github.com" git config --global user.email "azwhikaru+37921907@github.com"
repo init --depth=1 -u ${{ github.event.inputs.MANIFEST_URL }} -b ${{ github.event.inputs.MANIFEST_BRANCH }} repo init --depth=1 -u ${{ github.event.inputs.MANIFEST_URL }} -b ${{ github.event.inputs.MANIFEST_BRANCH }}
id: pwd id: pwd
- name: Repo Sync - name: Repo Sync
run: | run: |
repo sync -j$(nproc --all) --force-sync repo sync -j$(nproc --all) --force-sync
working-directory: workspace working-directory: workspace
- name: Clone device tree - name: Clone device tree
run: | run: |
git clone ${{ github.event.inputs.DEVICE_TREE_URL }} -b ${{ github.event.inputs.DEVICE_TREE_BRANCH }} ./${{ github.event.inputs.DEVICE_PATH }} git clone ${{ github.event.inputs.DEVICE_TREE_URL }} -b ${{ github.event.inputs.DEVICE_TREE_BRANCH }} ./${{ github.event.inputs.DEVICE_PATH }}
@ -152,7 +155,7 @@ jobs:
working-directory: ${{ steps.pwd.outputs.workspace-folder }} working-directory: ${{ steps.pwd.outputs.workspace-folder }}
- name: Upload to Release - name: Upload to Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v2
with: with:
files: | files: |
workspace/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/${{ github.event.inputs.BUILD_TARGET }}.img workspace/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/${{ github.event.inputs.BUILD_TARGET }}.img

View File

@ -61,10 +61,11 @@ jobs:
echo "Makefile Name: ${{ github.event.inputs.MAKEFILE_NAME }}" echo "Makefile Name: ${{ github.event.inputs.MAKEFILE_NAME }}"
echo "Build Target: ${{ github.event.inputs.BUILD_TARGET }}.img" echo "Build Target: ${{ github.event.inputs.BUILD_TARGET }}.img"
echo "::endgroup::" echo "::endgroup::"
# You might want to Checkout your repo first, but not mandatory # You might want to Checkout your repo first, but not mandatory
- name: Check Out - name: Check Out
uses: actions/checkout@v3 uses: actions/checkout@v4
# Cleanup The Actions Workspace Using Custom Composite Run Actions # Cleanup The Actions Workspace Using Custom Composite Run Actions
- name: Cleanup - name: Cleanup
uses: rokibhasansagar/slimhub_actions@main uses: rokibhasansagar/slimhub_actions@main
@ -74,31 +75,30 @@ jobs:
run: | run: |
sudo apt update sudo apt update
sudo apt -y upgrade sudo apt -y upgrade
sudo apt -y install gperf gcc-multilib gcc-10-multilib g++-multilib g++-10-multilib libc6-dev lib32ncurses5-dev x11proto-core-dev libx11-dev tree lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc bc ccache lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libwxgtk3.0-gtk3-dev libxml2 lzop pngcrush schedtool squashfs-tools imagemagick libbz2-dev lzma ncftp qemu-user-static libstdc++-10-dev libncurses5 python3 sudo apt -y install gperf gcc-multilib gcc-10-multilib g++-multilib g++-10-multilib libc6-dev lib32ncurses-dev x11proto-core-dev libx11-dev tree lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc bc ccache lib32readline-dev lib32z1-dev liblz4-tool libncurses-dev libsdl1.2-dev build-essential libgtk-3-dev libglu1-mesa-dev freeglut3-dev git libxml2 lzop pngcrush schedtool squashfs-tools imagemagick libbz2-dev lzma ncftp qemu-user-static libstdc++-10-dev libncurses6 python3
- name: Install OpenJDK - name: Install OpenJDK
uses: actions/setup-java@v3 uses: actions/setup-java@v4
with: with:
distribution: 'zulu' distribution: 'zulu'
java-version: '8' java-version: '11'
- name: Setup SSH Keys - name: Setup SSH Keys
if: ${{ startsWith(github.event.inputs.MANIFEST_URL, 'git@github.com') || if: ${{ startsWith(github.event.inputs.MANIFEST_URL, 'git@github.com') ||
startsWith(github.event.inputs.DEVICE_TREE_URL, 'git@github.com') || startsWith(github.event.inputs.DEVICE_TREE_URL, 'git@github.com') ||
startsWith(github.event.inputs.COMMON_TREE_URL, 'git@github.com') }} startsWith(github.event.inputs.COMMON_TREE_URL, 'git@github.com') }}
uses: webfactory/ssh-agent@v0.5.4 uses: webfactory/ssh-agent@v0.9.0
with: with:
ssh-private-key: | ssh-private-key: |
${{ secrets.SSH_PRIVATE_KEY }} ${{ secrets.SSH_PRIVATE_KEY }}
- name: Install repo - name: Install repo
run: | run: |
mkdir ~/bin mkdir ~/bin
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo chmod a+x ~/bin/repo
sudo ln -sf ~/bin/repo /usr/bin/repo sudo ln -sf ~/bin/repo /usr/bin/repo
- name: Initialize repo - name: Initialize repo
run: | run: |
mkdir workspace mkdir workspace
@ -108,12 +108,12 @@ jobs:
git config --global user.email "b170420nc@gmail.com" git config --global user.email "b170420nc@gmail.com"
repo init --depth=1 -u ${{ github.event.inputs.MANIFEST_URL }} -b ${{ github.event.inputs.MANIFEST_BRANCH }} repo init --depth=1 -u ${{ github.event.inputs.MANIFEST_URL }} -b ${{ github.event.inputs.MANIFEST_BRANCH }}
id: pwd id: pwd
- name: Repo Sync - name: Repo Sync
run: | run: |
repo sync -j$(nproc --all) --force-sync repo sync -j$(nproc --all) --force-sync
working-directory: workspace working-directory: workspace
- name: Clone device tree - name: Clone device tree
run: | run: |
git clone ${{ github.event.inputs.DEVICE_TREE_URL }} -b ${{ github.event.inputs.DEVICE_TREE_BRANCH }} ./${{ github.event.inputs.DEVICE_PATH }} git clone ${{ github.event.inputs.DEVICE_TREE_URL }} -b ${{ github.event.inputs.DEVICE_TREE_BRANCH }} ./${{ github.event.inputs.DEVICE_PATH }}
@ -155,7 +155,7 @@ jobs:
working-directory: ${{ steps.pwd.outputs.workspace-folder }} working-directory: ${{ steps.pwd.outputs.workspace-folder }}
- name: Upload to Release - name: Upload to Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v2
with: with:
files: | files: |
workspace/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/${{ github.event.inputs.BUILD_TARGET }}.img workspace/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/${{ github.event.inputs.BUILD_TARGET }}.img