Skip to content

Linux

Linux #9

name: Linux daily check
on:
schedule:
- cron: "0 8 * * *"
workflow_dispatch:
jobs:
update:
name: Linux daily check
runs-on: ubuntu-latest
strategy:
matrix:
arch: [amd64, arm64]
steps:
- name: Update system
run: sudo apt-get update && sudo apt-get --yes upgrade
- 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: Install building tools
run: sudo apt-get install --yes git python3 python3-pip gcc g++ make ninja-build nodejs sudo binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
- name: Clone the repo
run: git clone https://github.com/devraymondsh/libnode-distributable
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Run the script
env:
ARCH: ${{ matrix.arch }}
SCCACHE_GHA_ENABLED: "true"
CROSS_COMPILING: ${{ matrix.arch == 'amd64' && false || true }}
CC: ${{ matrix.arch == 'amd64' && 'sccache gcc' || 'sccache aarch64-linux-gnu-gcc' }}
CXX: ${{ matrix.arch == 'amd64' && 'sccache g++' || 'sccache aarch64-linux-gnu-g++' }}
run: cd libnode-distributable && node index.js
- name: Find the shared library
run: find libnode-distributable/node -name libnode.so\* -not -name '*.TOC' -not -name '*.toc' -exec ls {} \;