Files
Blitz2/.gitea/workflows/linux.yaml
Persson-dev 65a84ecab0
Some checks failed
Linux arm64 / Build (push) Failing after 1h55m3s
wrong directory name
2024-08-08 13:06:43 +02:00

52 lines
1.2 KiB
YAML

name: Linux arm64
run-name: Build And Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
Build:
runs-on: ubuntu-latest
env:
XMAKE_ROOT: y
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Prepare Xmake
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
actions-cache-folder: '.xmake-cache'
actions-cache-key: 'ubuntu-xmake'
- name: Packages List
run : |
xmake show -l packages | grep -E 'require|project' > ${{ github.workspace }}/packages.txt
cat ${{ github.workspace }}/packages.txt
- name: Calc deps hash
uses: seepine/hash-files@v1
id: get-hash
with:
patterns: 'packages.txt'
- name: Packages cache
uses: actions/cache@v4
with:
path: ~/.xmake/packages
key: ${{ runner.os }}-${{ steps.get-hash.outputs.hash }}
- name: XMake config
run: xmake f --policies=package.install_only -p linux -y
- name: Build
run: xmake
- name: Test
run: xmake test