fedora.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. name: Fedora
  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. runs-on: ${{ matrix.os }}
  13. container: fedora:latest
  14. concurrency:
  15. group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Fedora-${{ matrix.kind }}
  16. cancel-in-progress: true
  17. steps:
  18. - name: Installation
  19. run: |
  20. uname -a
  21. dnf -y install gfortran p7zip which
  22. dnf -y install mesa-libGL-devel mesa-libGLU-devel
  23. dnf -y install @development-tools @rpm-development-tools
  24. dnf -y install copr-cli make gcc-c++ libatomic libcxx-devel
  25. dnf -y upgrade git
  26. dnf -y install perl
  27. dnf -y install glibc-static libstdc++-static
  28. git config --global --add safe.directory /__w/xmake-repo/xmake-repo
  29. - uses: actions/checkout@v1
  30. - uses: xmake-io/github-action-setup-xmake@v1
  31. with:
  32. xmake-version: branch@master
  33. actions-cache-folder: '.xmake-cache'
  34. actions-cache-key: 'fedora'
  35. - name: Tests
  36. env:
  37. XMAKE_ROOT: y
  38. run: |
  39. xmake l ./scripts/test.lua -D -k ${{ matrix.kind }} -j4