hikyuu2/.github/workflows/ubuntu_python.yml

52 lines
1.0 KiB
YAML
Raw Normal View History

name: ubuntu-python-build
2023-09-15 01:07:04 +08:00
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
2023-10-10 22:12:50 +08:00
- uses: actions/checkout@v4
- name: Cache packages
id: cache-xmake-ubuntu
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.xmake
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
2023-10-10 22:38:40 +08:00
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: branch@master
actions-cache-folder: '.xmake-cache'
2024-01-11 18:53:24 +08:00
- name: Installation
run: |
sudo apt-get update
sudo apt-get install -y gcc g++
2023-10-10 22:12:50 +08:00
- name: configure
run: |
xmake f -y
2023-10-10 22:12:50 +08:00
- name: build
run: |
xmake -b core