-
Notifications
You must be signed in to change notification settings - Fork 17
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
Update to Node 16 #15
Update to Node 16 #15
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Should be fixed till November 14th according to this: actions/runner-images#6482 |
@seanmiddleditch any plan to get this merged soon? |
FWIW, I ended up just removing this action from our workflow and installing Ninja via package managers instead. - name: Install Ninja
shell: bash
run: ${{ runner.os == 'macOS' && 'brew install ninja' || runner.os == 'Windows' && 'choco install ninja' || 'sudo apt-get install ninja-build' }} Still, would be good to merge and release this, for those that prefer using the action. |
For everyone who wants manualy install ninja-build, they can try this: # Build Windows
BuildWindows:
# Name
name: 'Build Windows'
# OS
runs-on: windows-2022
# Environments
env:
NINJA_DIR: "${{ github.workspace }}/ninja"
NINJA_VERSION: "1.11.1"
# Job steps
steps:
# Restore Ninja
- name: 'Restore Ninja'
id: ninja-cache
uses: actions/cache@v3
with:
path: ${{ env.NINJA_EXE }}
key: ninja-${{ env.NINJA_VERSION }}-${{ runner.os }}
restore-keys: |
ninja-${{ env.NINJA_VERSION }}-${{ runner.os }}
env:
NINJA_EXE: "${{ env.NINJA_DIR }}.exe"
# Install Ninja
- if: ${{ steps.ninja-cache.outputs.cache-hit != 'true' }}
name: 'Install Ninja'
shell: pwsh
run: |
Invoke-WebRequest -TimeoutSec 60 -MaximumRetryCount 3 -OutFile "${{ env.NINJA_DIR }}.zip" -URI "${{ env.NINJA_DOWNLOAD_LINK }}"
7z e "${{ env.NINJA_DIR }}.zip" ninja.exe -r
& "${{ env.NINJA_EXE }}" --version
env:
NINJA_DOWNLOAD_LINK: "https://github.com/ninja-build/ninja/releases/download/v${{ env.NINJA_VERSION }}/ninja-win.zip"
NINJA_EXE: "${{ env.NINJA_DIR }}.exe"
# Build Linux
BuildLinux:
# Name
name: 'Build Linux'
# OS
runs-on: ubuntu-22.04
# Environments (only for method №1)
env:
NINJA_DIR: "${{ github.workspace }}/ninja"
NINJA_VERSION: "1.11.1"
# Job steps
steps:
# Method №1:
# Restore Ninja
- name: 'Restore Ninja'
id: ninja-cache
uses: actions/cache@v3
with:
path: ${{ env.NINJA_EXE }}
key: ninja-${{ env.NINJA_VERSION }}-${{ runner.os }}
restore-keys: |
ninja-${{ env.NINJA_VERSION }}-${{ runner.os }}
env:
NINJA_EXE: "${{ env.NINJA_DIR }}"
# Install Ninja
- if: ${{ steps.ninja-cache.outputs.cache-hit != 'true' }}
name: 'Install Ninja'
shell: bash
run: |
curl --max-time 60 --retry 3 -L -o "${{ env.NINJA_DIR }}.zip" ${{ env.NINJA_DOWNLOAD_LINK }} 2>&1
7z e "${{ env.NINJA_DIR }}.zip" ninja -r > nul
${{ env.NINJA_EXE }} --version
env:
NINJA_DOWNLOAD_LINK: "https://github.com/ninja-build/ninja/releases/download/v${{ env.NINJA_VERSION }}/ninja-linux.zip"
NINJA_EXE: "${{ env.NINJA_DIR }}"
# Method №2:
# Install Ninja
- name: 'Install Ninja'
run: |
sudo apt-get update
sudo apt-get install --yes --no-install-recommends ninja-build
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR looks good to me according to the runs.using docs, so I'm approving it.
@seanmiddleditch why don't you approve it? Is there any specific reason for nodejs 12?
@seanmiddleditch @EwoutH could you approve this PR? |
BTW, given the lack of response, I have forked this repo and fixed it in https://github.com/abdes/gha-setup-ninja. Feel free to use it instead while we wait... maybe forever..... |
You can consider an alternative too: https://github.com/turtlesec-no/get-ninja |
Looks good, but I don't have any formal role in this project. For that we need @seanmiddleditch. |
Wow, this is what I get for letting GitHub notifications get away from me to the point I just started ignoring them. I literally had no idea that not only was there a request to update but a whole community discussion to work around my delinquent maintainership! I'll get this merged in and a new release pushed out. |
Hi. Please update this action to use Node 16.
See: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
Thanks.