main.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # This is a basic workflow to help you get started with Actions
  2. name: DTC
  3. # Controls when the workflow will run
  4. on:
  5. # Triggers the workflow on push or pull request events but only for the master branch
  6. push:
  7. branches: [ master ]
  8. pull_request:
  9. branches: [ master ]
  10. # Allows you to run this workflow manually from the Actions tab
  11. workflow_dispatch:
  12. # A workflow run is made up of one or more jobs that can run sequentially or in parallel
  13. jobs:
  14. # This workflow contains a single job called "build"
  15. ubuntu18_04-gcc4_8:
  16. # The type of runner that the job will run on
  17. runs-on: ubuntu-18.04
  18. # Steps represent a sequence of tasks that will be executed as part of the job
  19. steps:
  20. # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
  21. - uses: actions/checkout@v2
  22. - name: Install GCC
  23. uses: egor-tensin/setup-gcc@v1
  24. with:
  25. version: 4.8
  26. - name: install dependency
  27. run: |
  28. sudo apt-get install -y make zlib1g zlib1g-dev bzip2 liblz4-dev libasan0 openssl libmxml-dev
  29. # Runs a set of commands using the runners shell
  30. - name: cmake project
  31. run: |
  32. cd ${{github.workspace}}
  33. mkdir build
  34. cd build
  35. cmake ../
  36. make