archlinux.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: Archlinux
  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. container: archlinux:base-devel
  13. runs-on: ${{ matrix.os }}
  14. concurrency:
  15. group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Archlinux-${{ matrix.kind }}
  16. cancel-in-progress: true
  17. steps:
  18. - name: Installation
  19. run: |
  20. pacman -Syu --noconfirm --needed openssl
  21. pacman -Sy --noconfirm --needed glibc git base-devel perl make unzip p7zip
  22. pacman -Sy --noconfirm --needed mesa gcc-fortran glu libc++
  23. git config --global --add safe.directory /__w/xmake/xmake
  24. git config --global --add safe.directory /__w/xmake-repo/xmake-repo
  25. - uses: actions/checkout@v1
  26. - uses: xmake-io/github-action-setup-xmake@v1
  27. with:
  28. xmake-version: branch@master
  29. actions-cache-folder: '.xmake-cache'
  30. actions-cache-key: 'archlinux'
  31. - name: Tests
  32. env:
  33. XMAKE_ROOT: y
  34. run: |
  35. xmake l ./scripts/test.lua -D -k ${{ matrix.kind }}