Files
Tower-Defense/.gitea/workflows/linux.yaml
Simon Pribylski 0b00fd02c2
Some checks failed
Linux arm64 / Build (push) Has been cancelled
iljiljlj
2024-08-08 12:47:14 +02:00

50 lines
1.1 KiB
YAML

name: Linux arm64
run-name: Build And Test
on: [push]
jobs:
Build:
runs-on: ubuntu-test
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 hash
run : |
echo require | grep -E 'require|project' > ~/packages.hash
cat ~/packages.hash
- name: Test
run: cat ~/packages.hash
- name: Calc deps hash
uses: https://gitea.com/seepine/hash-files@v1
id: get-hash
with:
workdir: '~'
patterns: 'xmake.lua'
- 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