Skip to content

Commit

Permalink
Fixed workflow file for Linux (#54)
Browse files Browse the repository at this point in the history
* Update linux.yml

* Update linux.yml

* Update linux.yml

* Update linux.yml

* removed 5sec run test
  • Loading branch information
Thirulogeswaren authored Aug 28, 2024
1 parent dfc4e50 commit 53de695
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
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()

0 comments on commit 53de695

Please sign in to comment.