Modernise the Github Actions workflow & test Python

- It now also tests the --early-preseed and --repo options implicitly.
- Upgraded all actions to v4.
- Test Python bootstrap separately.
This commit is contained in:
fosslinux 2024-12-17 18:50:53 +11:00
parent c9fa9a00f4
commit 86bd8de815
3 changed files with 86 additions and 51 deletions

View file

@ -220,13 +220,10 @@ print(shutil.which('chroot'))
elif args.bwrap:
init = '/init'
if not args.internal_ci or args.internal_ci == "pass1":
generator.prepare(target, using_kernel=False)
generator.prepare(target, using_kernel=False)
arch = stage0_arch_map.get(args.arch, args.arch)
init = os.path.join(os.sep, 'bootstrap-seeds', 'POSIX', arch, 'kaem-optional-seed')
else:
generator.reuse(target)
arch = stage0_arch_map.get(args.arch, args.arch)
init = os.path.join(os.sep, 'bootstrap-seeds', 'POSIX', arch, 'kaem-optional-seed')
run('env', '-i', 'bwrap', '--unshare-user',
'--uid', '0',