This commit is contained in:
@@ -5,7 +5,7 @@ on: [push]
|
||||
|
||||
jobs:
|
||||
Build:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-test
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
@@ -17,13 +17,14 @@ jobs:
|
||||
actions-cache-folder: '.xmake-cache'
|
||||
actions-cache-key: 'ubuntu-xmake'
|
||||
|
||||
- name: Packages hash
|
||||
run : xmake show -l packages | grep require > packages.hash
|
||||
|
||||
- name: Calc deps hash
|
||||
uses: seepine/hash-files@v1
|
||||
id: get-hash
|
||||
with:
|
||||
patterns: |
|
||||
**/xmake.lua
|
||||
**/xmake/*.lua
|
||||
patterns: ~/packages.hash
|
||||
|
||||
- name: Packages cache
|
||||
uses: actions/cache@v4
|
||||
@@ -32,7 +33,7 @@ jobs:
|
||||
key: ${{ runner.os }}-${{ steps.get-hash.outputs.hash }}
|
||||
|
||||
- name: XMake config
|
||||
run: xmake f -p linux -y
|
||||
run: xmake f --policies=package.install_only -p linux -y
|
||||
|
||||
- name: Build
|
||||
run: xmake
|
||||
|
||||
Reference in New Issue
Block a user