-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 1.16 KB
/
amd64-linux-scheduled-builds.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Check for newer versions and publish
on:
schedule:
- cron: "0 8 * * *"
workflow_dispatch:
jobs:
update:
name: Check for newer versions of Nodejs and update
runs-on: ubuntu-latest
container:
image: ubuntu:devel
steps:
- name: Update system
run: apt-get update && apt-get --yes upgrade
- name: Install Nodejs 21 repo
run: apt-get install --yes ca-certificates curl gnupg && curl -sL https://deb.nodesource.com/setup_21.x | bash - && apt-get update
- name: Install building tools
run: apt-get install --yes git python3 python3-pip gcc g++ make ninja-build nodejs
- 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:
CC: "sccache gcc"
CXX: "sccache g++"
SCCACHE_GHA_ENABLED: "true"
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 {} \;