Skip to content

Commit 3fa26ed

Browse files
committed
update actions
1 parent de54054 commit 3fa26ed

1 file changed

Lines changed: 32 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,45 @@ jobs:
1414
- name: Checkout code
1515
uses: actions/checkout@v4
1616

17+
- name: Cache APT packages
18+
uses: actions/cache@v4
19+
id: cache-apt
20+
with:
21+
path: |
22+
/var/cache/apt/archives
23+
/var/lib/apt/lists
24+
key: ${{ runner.os }}-apt-${{ hashFiles('.github/workflows/build.yml') }}
25+
restore-keys: |
26+
${{ runner.os }}-apt-
27+
1728
- name: Install dependencies
29+
if: steps.cache-apt.outputs.cache-hit != 'true'
1830
run: |
1931
sudo apt-get update
20-
sudo apt-get install -y libsdl2-dev libsdl2-ttf-dev
32+
sudo apt-get install -y libsdl2-dev libsdl2-ttf-dev xvfb
33+
34+
- name: Install from cache
35+
if: steps.cache-apt.outputs.cache-hit == 'true'
36+
run: |
37+
sudo apt-get install -y libsdl2-dev libsdl2-ttf-dev xvfb
2138
2239
- name: Build project
2340
run: make
2441

25-
- name: Check binary exists
42+
- name: Verify binary
2643
run: |
44+
echo "=== Binary info ==="
2745
ls -lh simple-terminal
2846
file simple-terminal
47+
echo ""
48+
echo "=== Check executable permissions ==="
49+
test -x simple-terminal && echo "✓ Binary is executable" || exit 1
50+
echo ""
51+
echo "=== Check dependencies ==="
52+
ldd simple-terminal
53+
echo ""
54+
echo "=== Test help output ==="
55+
./simple-terminal -h 2>&1 | head -n 5 || echo "Exit code: $?"
56+
echo ""
57+
echo "=== Test with virtual display ==="
58+
timeout 5 xvfb-run -a ./simple-terminal -q || echo "✓ Binary executed (exit code: $?)"

0 commit comments

Comments
 (0)