mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
41 lines
709 B
YAML
41 lines
709 B
YAML
name: xmake build
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
name: build-linux
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: install dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y g++ libssl-dev libgtest-dev
|
|
|
|
- name: setup xmake
|
|
uses: xmake-io/github-action-setup-xmake@v1
|
|
with:
|
|
xmake-version: latest
|
|
|
|
- name: pull code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: xmake
|
|
run: |
|
|
xmake -r
|
|
xmake -g test
|
|
xmake -g tutorial
|
|
xmake -g benchmark
|
|
|
|
- name : run shared
|
|
run: |
|
|
xmake f -k shared
|
|
xmake -r
|
|
xmake -g test
|
|
xmake -g tutorial
|
|
xmake -g benchmark
|
|
|
|
|