harvey.yml 961 B

123456789101112131415161718192021222324252627282930313233
  1. name: harvey
  2. on: [push, pull_request]
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. defaults:
  7. run:
  8. working-directory: build
  9. steps:
  10. - uses: actions/checkout@v2
  11. - name: install deps
  12. run: |
  13. sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y # see https://wiki.ubuntu.com/ToolChain
  14. sudo apt-get update
  15. sudo apt-get install -y rc qemu go-dep qemu-utils expect qemu-system-x86
  16. go get harvey-os.org/cmd/ufs
  17. - name: install source we build into the image
  18. run: |
  19. git clone --depth 1 --branch go1.16.6 https://github.com/golang/go.git
  20. cd go/src
  21. GOOS=plan9 GOARCH=amd64 ./make.bash
  22. - name: bootstrap and run
  23. env:
  24. ARCH: amd64
  25. OS: linux
  26. run: |
  27. # ensure there is a go directory in the image
  28. # not needed for long
  29. mkdir -p ../go
  30. ~/go/bin/ufs -root .. -user glenda &
  31. bash command.bash # run a command