ubuntu.yml 954 B

12345678910111213141516171819202122232425262728293031323334353637
  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. - uses: actions/checkout@v1
  19. - uses: xmake-io/github-action-setup-xmake@v1
  20. with:
  21. xmake-version: branch@master
  22. actions-cache-folder: '.xmake-cache'
  23. actions-cache-key: 'ubuntu'
  24. - name: Installation
  25. run: |
  26. # TODO we will remove it later
  27. sudo apt-get update
  28. sudo apt-get install -y libgl1-mesa-dev libglu1-mesa-dev p7zip gobjc gcc g++
  29. - name: Tests
  30. run: |
  31. xmake l ./scripts/test.lua -D -k ${{ matrix.kind }} -m ${{ matrix.mode }}