Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed workflow file for Linux #54

Merged
merged 5 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

strategy:
fail-fast: false
Expand All @@ -31,6 +31,9 @@ jobs:
run: echo "key=$(date +'%W')" >> $GITHUB_ENV
shell: bash

- name: installing OpenGL
run: sudo apt-get install -y libgl-dev

- name: Checkout repository
uses: actions/checkout@v4

Expand All @@ -47,17 +50,12 @@ jobs:
- name: Update xmake repository
run: xmake repo --update

- name: Retrieve dependencies hash
id: dep_hash
run: echo "hash=$(xmake l utils.ci.packageskey)" >> $GITHUB_ENV
shell: bash

- name: Restore cached xmake dependencies
id: restore-depcache
uses: actions/cache/restore@v4
with:
path: ${{ env.XMAKE_GLOBALDIR }}/.xmake/packages
key: ${{ matrix.rhi }}-${{ matrix.prj }}-${{ env.hash }}-W${{ env.key }}
key: ${{ matrix.rhi }}-${{ matrix.prj }}-W${{ env.key }}

- name: Check xmake packages directory exists
shell: bash
Expand Down
1 change: 0 additions & 1 deletion Samples/ModelLoading/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,4 @@ target("ModelLoading")
end

add_tests("compile_pass", {build_should_pass = true})
add_tests("run_5_seconds", { runargs = {"-test"} })
target_end()
Loading