package An official xmake package repository https://xrepo.xmake.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
954 B

5 years ago
name: Linux
on:
pull_request:
4 years ago
branches:
- dev
5 years ago
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
4 years ago
kind: [static, shared]
2 years ago
mode: [debug, release]
5 years ago
runs-on: ${{ matrix.os }}
3 years ago
concurrency:
2 years ago
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Linux-${{ matrix.kind }}-${{ matrix.mode }}
3 years ago
cancel-in-progress: true
5 years ago
steps:
- uses: actions/checkout@v1
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: branch@master
actions-cache-folder: '.xmake-cache'
12 months ago
actions-cache-key: 'ubuntu'
5 years ago
- name: Installation
run: |
4 years ago
# TODO we will remove it later
sudo apt-get update
1 year ago
sudo apt-get install -y libgl1-mesa-dev libglu1-mesa-dev p7zip gobjc gcc g++
4 years ago
- name: Tests
5 years ago
run: |
2 years ago
xmake l ./scripts/test.lua -D -k ${{ matrix.kind }} -m ${{ matrix.mode }}