@@ -10,22 +10,24 @@ jobs:
1010 build :
1111 strategy :
1212 fail-fast : false
13- runs-on : ubuntu-22 .04
13+ runs-on : ubuntu-24 .04
1414 steps :
1515 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
16- - uses : actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
16+ - uses : actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
1717 with :
1818 path : ~/.local/share/pnpm/store
1919 key : build-${{ hashFiles('**/package.json') }}
20- - uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3 .0
20+ - uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4 .0
2121 with :
2222 node-version : 24
23- - run : corepack pnpm install
23+ - run : |
24+ npm install -g corepack
25+ corepack pnpm install
2426 env:
2527 PUPPETEER_SKIP_DOWNLOAD: true
2628 - run : corepack pnpm build
2729 - run : corepack pnpm lint
28- - uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
30+ - uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
2931 with :
3032 name : build-lib
3133 path : pkg/*/lib/
@@ -35,33 +37,35 @@ jobs:
3537 strategy :
3638 matrix :
3739 include :
38- - node : 25
40+ - node : 26
3941 test : test
4042 - node : 24
4143 test : cover
4244 fail-fast : false
4345 name : unittest (${{ matrix.node }})
44- runs-on : ubuntu-22 .04
46+ runs-on : ubuntu-24 .04
4547 steps :
4648 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
47- - uses : actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
49+ - uses : actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
4850 with :
4951 path : ~/.local/share/pnpm/store
5052 key : unittest-${{ matrix.node }}-${{ hashFiles('**/package.json') }}
51- - uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3 .0
53+ - uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4 .0
5254 with :
5355 node-version : ${{ matrix.node }}
5456 - uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
5557 with :
5658 python-version : ' 3.12'
5759 - name : Install dependencies
5860 run : |
59- echo "deb [arch=amd64 trusted=yes] https://nfd-nightly-apt.ndn.today/ubuntu jammy main" \
61+ echo "deb [arch=amd64 trusted=yes] https://nfd-nightly-apt.ndn.today/ubuntu noble main" \
6062 | sudo tee /etc/apt/sources.list.d/nfd-nightly.list
6163 sudo apt-get update
6264 sudo apt-get install --no-install-recommends ndnsec
6365 pip install git+https://github.com/UCLA-IRL/ndn-python-repo@991ed9de02add3c1aea9994da573da9ae3ce7c67
64- - run : corepack pnpm install
66+ - run : |
67+ npm install -g corepack
68+ corepack pnpm install
6569 env:
6670 PUPPETEER_SKIP_DOWNLOAD: true
6771 - run : corepack pnpm ${{ matrix.test }}
@@ -74,27 +78,33 @@ jobs:
7478 integ :
7579 strategy :
7680 fail-fast : false
77- runs-on : ubuntu-22 .04
81+ runs-on : ubuntu-24 .04
7882 steps :
83+ - name : Disable Ubuntu AppArmor Namespace Restrictions
84+ run : |
85+ sudo sysctl -w kernel.apparmor_restrict_unprivileged_unconfined=0 || true
86+ sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 || true
7987 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
80- - uses : actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
88+ - uses : actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
8189 with :
8290 path : |
8391 ~/.local/share/pnpm/store
8492 ~/.cache/puppeteer
8593 key : integ-${{ hashFiles('**/package.json') }}
86- - uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3 .0
94+ - uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4 .0
8795 with :
8896 node-version : 24
8997 - name : Install dependencies
9098 run : |
91- echo "deb [arch=amd64 trusted=yes] https://nfd-nightly-apt.ndn.today/ubuntu jammy main" \
99+ echo "deb [arch=amd64 trusted=yes] https://nfd-nightly-apt.ndn.today/ubuntu noble main" \
92100 | sudo tee /etc/apt/sources.list.d/nfd-nightly.list
93101 sudo apt-get update
94- sudo apt-get install --no-install-recommends clang-format-15 libndn-cxx-dev libpsync-dev nfd
102+ sudo apt-get install --no-install-recommends clang-format-20 libndn-cxx-dev libpsync-dev nfd
95103 sudo cp /etc/ndn/nfd.conf.sample /etc/ndn/nfd.conf
96104 sudo systemctl restart nfd
97- - run : corepack pnpm install
105+ - run : |
106+ npm install -g corepack
107+ corepack pnpm install
98108 - run : corepack pnpm build
99109 - name : Check dependencies and devDependencies
100110 run : node mk/check-dep.mjs
@@ -111,20 +121,23 @@ jobs:
111121 publish :
112122 needs : [build, unittest, integ]
113123 if : ${{ github.repository == 'yoursunny/NDNts' && github.event_name == 'push' }}
114- runs-on : ubuntu-22 .04
124+ runs-on : ubuntu-24 .04
115125 steps :
116126 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
117- - uses : actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
127+ - uses : actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
118128 with :
119129 path : ~/.local/share/pnpm/store
120130 key : publish-${{ hashFiles('**/package.json') }}
121- - uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3 .0
131+ - uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4 .0
122132 with :
123133 node-version : 24
134+ - run : |
135+ npm install -g corepack
136+ corepack pnpm install
124137 - run : corepack pnpm install
125138 env :
126139 PUPPETEER_SKIP_DOWNLOAD : true
127- - uses : actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
140+ - uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
128141 with :
129142 name : build-lib
130143 path : pkg/
0 commit comments