File: ci.yml

package info (click to toggle)
alpine-chroot-install 0.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 148 kB
  • sloc: sh: 503; makefile: 37
file content (28 lines) | stat: -rw-r--r-- 743 bytes parent folder | download
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
name: CI
on:
  - pull_request
  - push

jobs:
  test:
    runs-on: ubuntu-20.04
    strategy:
      matrix:
        arch:
          - x86_64
          - aarch64
          - armv7
          - ppc64le
    steps:
      - uses: actions/checkout@v2

      - run: sudo ./alpine-chroot-install -a ${{ matrix.arch }}

      - run: /alpine/enter-chroot uname -a
      - run: '[[ "$(/alpine/enter-chroot uname -m)" == ${{ matrix.arch }}* ]]'
      - run: /alpine/enter-chroot env
      - run: /alpine/enter-chroot -u $USER env
      - run: sudo /alpine/enter-chroot -u $USER env
      - run: test "$(/alpine/enter-chroot printf %s! 'Hello, world')" = 'Hello, world!'
      - run: /alpine/destroy
      - run: /alpine/destroy --remove; ! test -d /alpine