-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e4916a0
commit 320878c
Showing
5 changed files
with
117 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Linux daily check | ||
name: Linux | ||
|
||
on: | ||
schedule: | ||
|
@@ -7,34 +7,50 @@ on: | |
|
||
jobs: | ||
update: | ||
name: Linux daily check | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
arch: [amd64, arm64] | ||
include: | ||
- arch: arm64 | ||
is_arm: true | ||
container: | ||
image: ubuntu:devel | ||
steps: | ||
- name: Update system | ||
run: sudo apt-get update && sudo apt-get --yes upgrade | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Nodejs 21 repo | ||
run: sudo apt-get install --yes ca-certificates curl gnupg && curl -sL https://deb.nodesource.com/setup_21.x | sudo bash - && sudo apt-get update | ||
- name: Setup ccache | ||
uses: actions/cache@v4 | ||
with: | ||
path: .ccache | ||
save-always: true | ||
key: ${{ github.workflow }}-${{ matrix.arch }} | ||
|
||
- name: Install building tools | ||
run: sudo apt-get install --yes git python3 python3-pip gcc g++ make ninja-build nodejs sudo | ||
|
||
- name: Clone the repo | ||
run: git clone https://github.com/devraymondsh/libnode-distributable | ||
|
||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
run: | | ||
apt-get install --yes ca-certificates curl gnupg && curl -sL https://deb.nodesource.com/setup_21.x | bash - | ||
apt-get update | ||
apt-get install --yes git nodejs python3 python3-pip gcc g++ make nasm ccache linux-libc-dev linux-libc-dev-arm64-cross binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu g++-aarch64-linux-gnu | ||
- name: Run the script | ||
env: | ||
CC: "sccache gcc" | ||
CXX: "sccache g++" | ||
ARCH: ${{ matrix.arch }} | ||
SCCACHE_GHA_ENABLED: "true" | ||
run: cd libnode-distributable && node index.js | ||
CC: "${{ matrix.is_arm && 'aarch64-linux-gnu-gcc' || 'gcc' }}" | ||
CXX: "${{ matrix.is_arm && 'aarch64-linux-gnu-g++' || 'g++' }}" | ||
# We don't want these variables to be set for AMD64. | ||
CC_host: "${{ matrix.is_arm && 'gcc' || null }}" | ||
CXX_host: "${{ matrix.is_arm && 'g++' || null }}" | ||
AS: "${{ matrix.is_arm && 'aarch64-linux-gnu-as' || null }}" | ||
LD: "${{ matrix.is_arm && 'aarch64-linux-gnu-ld' || null }}" | ||
RANLIB: "${{ matrix.is_arm && 'aarch64-linux-gnu-ranlib' || null }}" | ||
run: | | ||
export CCACHE_COMPRESS="true" | ||
export CCACHE_BASEDIR="$GITHUB_WORKSPACE" | ||
export CCACHE_DIR="$CCACHE_BASEDIR/.ccache" | ||
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" | ||
mkdir -p "$CCACHE_DIR" | ||
node index.js | ||
- name: Find the shared library | ||
run: find libnode-distributable/node -name libnode.so\* -not -name '*.TOC' -not -name '*.toc' -exec ls {} \; | ||
run: ls node/out/Release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Macos daily check | ||
name: Macos | ||
|
||
on: | ||
schedule: | ||
|
@@ -7,28 +7,53 @@ on: | |
|
||
jobs: | ||
update: | ||
name: Macos daily check | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
arch: [amd64, arm64] | ||
include: | ||
- arch: arm64 | ||
os: macos-14 | ||
is_arm: true | ||
- arch: amd64 | ||
os: macos-13 | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup ccache | ||
uses: actions/cache@v4 | ||
with: | ||
path: .ccache | ||
save-always: true | ||
key: ${{ github.workflow }}-${{ matrix.arch }} | ||
|
||
- name: Install building tools | ||
run: brew install node python ninja nasm git | ||
run: | | ||
sudo chown -R $(whoami) $(brew --prefix)/* | ||
- name: Clone the repo | ||
run: git clone https://github.com/devraymondsh/libnode-distributable | ||
# homebrew fails to update python 3.9.1 to 3.9.1.1 due to unlinking failure | ||
sudo rm -f /usr/local/bin/2to3 || true | ||
# homebrew fails to update python from 3.9 to 3.10 due to another unlinking failure | ||
sudo rm -f /usr/local/bin/idle3 || true | ||
sudo rm -f /usr/local/bin/pydoc3 || true | ||
sudo rm -f /usr/local/bin/python3 || true | ||
sudo rm -f /usr/local/bin/python3-config || true | ||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
brew install git node ninja nasm ccache | ||
- name: Run the script | ||
env: | ||
CC: "sccache cc" | ||
CXX: "sccache c++" | ||
CC: "gcc" | ||
CXX: "g++" | ||
ARCH: ${{ matrix.arch }} | ||
SCCACHE_GHA_ENABLED: "true" | ||
run: cd libnode-distributable && node index.js | ||
run: | | ||
export CCACHE_COMPRESS="true" | ||
export CCACHE_BASEDIR="$GITHUB_WORKSPACE" | ||
export CCACHE_DIR="$CCACHE_BASEDIR/.ccache" | ||
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" | ||
mkdir -p "$CCACHE_DIR" | ||
node index.js | ||
- name: Find the shared library | ||
run: find libnode-distributable/node -name libnode.so\* -not -name '*.TOC' -not -name '*.toc' -exec ls {} \; | ||
run: ls node/out/Release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Windows daily check | ||
name: Windows | ||
|
||
on: | ||
schedule: | ||
|
@@ -7,37 +7,37 @@ on: | |
|
||
jobs: | ||
update: | ||
name: Windows daily check | ||
name: Windows | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
arch: [amd64, amd64_arm64] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
# - name: Setup ccache | ||
# uses: actions/cache@v4 | ||
# with: | ||
# key: ${{ github.workflow }}-${{ matrix.arch }} | ||
# path: C:\.ccache | ||
|
||
- uses: ilammy/msvc-dev-cmd@v1 | ||
with: | ||
arch: ${{ matrix.arch }} | ||
|
||
- uses: MinoruSekine/setup-scoop@v3 | ||
with: | ||
buckets: extras | ||
update_path: true | ||
run_as_admin: true | ||
scoop_update: true | ||
|
||
- name: Install building tools | ||
run: scoop install nodejs python ninja nasm git | ||
|
||
- name: Clone the repo | ||
run: git clone https://github.com/devraymondsh/libnode-distributable | ||
|
||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
run: scoop install git nodejs python ninja nasm | ||
|
||
- name: Run the script | ||
env: | ||
ARCH: ${{ matrix.arch }} | ||
SCCACHE_GHA_ENABLED: "true" | ||
run: cd libnode-distributable ; node index.js | ||
run: node index.js | ||
|
||
- name: Find the shared library | ||
run: dir libnode-distributable\node\out\Release\libnode.dll | ||
run: dir out\Release\node.lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
node | ||
node | ||
.ccache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters