xref: /src/.cirrus.yml (revision 75e44873df2c86b9e15544b496af7040f9f6e0d2)
19c0fe7f6SEd Maste# $FreeBSD$
29c0fe7f6SEd Maste
3cec2682cSEd Mastecompute_engine_instance:
4407abff2SEd Maste  # Image list available via
5407abff2SEd Maste  # gcloud compute images list --project freebsd-org-cloud-dev --no-standard-images
6cec2682cSEd Maste  platform: freebsd
7cec2682cSEd Maste  image_project: freebsd-org-cloud-dev
8407abff2SEd Maste  image: freebsd-13-0-release-amd64
99c0fe7f6SEd Maste  cpu: 8
10bbf70270SEd Maste  memory: 8G
11cec2682cSEd Maste  disk: 40
129c0fe7f6SEd Maste
139c0fe7f6SEd Mastetask:
148cba2003SEd Maste  matrix:
158cba2003SEd Maste  - name: World and kernel amd64 build and boot smoke test
168cba2003SEd Maste    env:
178cba2003SEd Maste      TARGET: amd64
188cba2003SEd Maste      TARGET_ARCH: amd64
1975e44873SEd Maste      TOOLCHAIN_PKG: llvm13
208cba2003SEd Maste  - name: World and kernel arm64 build and boot smoke test
218cba2003SEd Maste    trigger_type: manual
228cba2003SEd Maste    env:
238cba2003SEd Maste      TARGET: arm64
248cba2003SEd Maste      TARGET_ARCH: aarch64
2575e44873SEd Maste      TOOLCHAIN_PKG: llvm13
2675e44873SEd Maste  - name: World and kernel gcc9 amd64 build and boot smoke test
2775e44873SEd Maste    trigger_type: manual
2875e44873SEd Maste    env:
2975e44873SEd Maste      TARGET: amd64
3075e44873SEd Maste      TARGET_ARCH: amd64
3175e44873SEd Maste      TOOLCHAIN_PKG: amd64-gcc9
324d083e6dSEd Maste  timeout_in: 120m
339c0fe7f6SEd Maste  install_script:
3475e44873SEd Maste  - sh .cirrus-ci/pkg-install.sh qemu-nox11 ${TOOLCHAIN_PKG}
35af11c202SEd Maste  setup_script:
36f2f24008SEd Maste  - uname -a
37f2f24008SEd Maste  - df -m
38a077a4e3SEd Maste  - pkg --version
39db853af6SEd Maste  - pw useradd user
40db853af6SEd Maste  - mkdir -p /usr/obj/$(pwd -P)
41db853af6SEd Maste  - chown user:user /usr/obj/$(pwd -P)
429c0fe7f6SEd Maste  script:
4375e44873SEd Maste  - su user -c "make -j$(sysctl -n hw.ncpu) CROSS_TOOLCHAIN=${TOOLCHAIN_PKG} WITHOUT_TOOLCHAIN=yes buildworld buildkernel"
44e1e9e084SEd Maste  package_script:
4575e44873SEd Maste  - su user -c "make CROSS_TOOLCHAIN=${TOOLCHAIN_PKG} WITHOUT_TOOLCHAIN=yes PKG_FORMAT=tar packages"
46e1e9e084SEd Maste  test_script:
47e1e9e084SEd Maste  - sh tools/boot/ci-qemu-test.sh
48f2f24008SEd Maste  post_script:
49f2f24008SEd Maste  - df -m
50f2f24008SEd Maste  - du -m -s /usr/obj
51