ubuntu.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. name: Linux
  2. on:
  3. pull_request:
  4. branches:
  5. - dev
  6. jobs:
  7. build:
  8. strategy:
  9. matrix:
  10. os: [ubuntu-latest]
  11. kind: [static, shared]
  12. mode: [debug, release]
  13. runs-on: ${{ matrix.os }}
  14. concurrency:
  15. group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Linux-${{ matrix.kind }}-${{ matrix.mode }}
  16. cancel-in-progress: true
  17. steps:
  18. - name: Free Disk Space
  19. uses: jlumbroso/[email protected]
  20. with:
  21. tool-cache: false
  22. android: true
  23. dotnet: true
  24. haskell: true
  25. large-packages: true
  26. docker-images: true
  27. swap-storage: true
  28. - uses: actions/checkout@v1
  29. - uses: xmake-io/github-action-setup-xmake@v1
  30. with:
  31. xmake-version: branch@master
  32. actions-cache-folder: '.xmake-cache'
  33. actions-cache-key: 'ubuntu'
  34. - name: Installation
  35. run: |
  36. # TODO we will remove it later
  37. sudo apt-get update
  38. sudo apt-get install -y libgl1-mesa-dev libglu1-mesa-dev p7zip gobjc gcc g++
  39. - name: Tests
  40. run: |
  41. xmake l ./scripts/test.lua -D -k ${{ matrix.kind }} -m ${{ matrix.mode }}