hikyuu2/.github/workflows/ubuntu_aarch64.yml

58 lines
1.5 KiB
YAML
Raw Normal View History

2023-07-29 01:07:48 +08:00
name: ubuntu-aarch64-build
2023-07-29 01:05:16 +08:00
2023-09-15 01:07:04 +08:00
on:
push:
branches:
- master
pull_request:
branches:
- master
2023-07-29 01:05:16 +08:00
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
cross: [aarch64-linux-musl]
concurrency:
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Cross-Musl-${{ matrix.cross }}
cancel-in-progress: true
steps:
2023-10-10 22:12:50 +08:00
- uses: actions/checkout@v4
- name: Cache xmake aarch64 packages
id: cache-xmake-ubuntu-aarch64
uses: actions/cache@v3
env:
cache-name: cache-ubuntu-aarch64-modules
with:
2023-10-10 22:38:40 +08:00
path: |
~/.xmake
./${{ matrix.cross }}-cross.linux
2023-10-10 22:12:50 +08:00
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-07-29 01:05:16 +08:00
- uses: xmake-io/github-action-setup-xmake@v1
2023-10-10 22:38:40 +08:00
with:
xmake-version: branch@master
actions-cache-folder: '.xmake-cache'
2023-10-03 11:14:54 +08:00
- name: Installation musl
run: |
wget https://github.com/xmake-mirror/musl.cc/releases/download/20210202/${{ matrix.cross }}-cross.linux.tgz
tar -xvf ${{ matrix.cross }}-cross.linux.tgz
2023-10-10 22:12:50 +08:00
- name: configure
2023-07-29 01:05:16 +08:00
run: |
2023-10-04 01:15:46 +08:00
xmake f -p cross -a aarch64 --sdk=`pwd`/${{ matrix.cross }}-cross -y
2023-10-10 22:12:50 +08:00
- name: build
run: |
2023-10-04 01:15:46 +08:00
xmake -b hikyuu