Skip to content

Commit 001c6c2

Browse files
committed
Update ci.yml
1 parent b3a85a1 commit 001c6c2

File tree

1 file changed

+0
-64
lines changed

1 file changed

+0
-64
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -20,76 +20,12 @@ permissions:
2020
statuses: write
2121

2222
jobs:
23-
strip-comments:
24-
runs-on: ubuntu-latest
25-
steps:
26-
- uses: actions/checkout@v3
27-
- run: |
28-
curl -sSfL https://raw.githubusercontent.com/bleonheart/Useful-Python-Scripts/refs/heads/main/files/remove_lua_comments.py -o remove_lua_comments.py || curl -sSfL https://raw.githubusercontent.com/bleonheart/Useful-Python-Scripts/main/files/remove_lua_comments.py -o remove_lua_comments.py
29-
python3 remove_lua_comments.py .
30-
tar --exclude=.git -cf workspace.tar .
31-
- uses: actions/upload-artifact@v4
32-
with:
33-
name: workspace
34-
path: workspace.tar
35-
overwrite: true
36-
retention-days: 1
37-
38-
format-glua:
39-
needs: strip-comments
40-
runs-on: ubuntu-latest
41-
steps:
42-
- uses: actions/checkout@v3
43-
- uses: actions/download-artifact@v4
44-
with:
45-
name: workspace
46-
path: .
47-
- run: |
48-
tar -xf workspace.tar
49-
rm -f workspace.tar
50-
- name: Download glualint binary
51-
env:
52-
GLUALINT_VERSION: "1.29.0"
53-
run: |
54-
set -euo pipefail
55-
sudo apt-get update -y
56-
sudo apt-get install -y unzip file
57-
arch="$(uname -m)"
58-
case "$arch" in
59-
x86_64) asset="glualint-${GLUALINT_VERSION}-x86_64-linux.zip" ;;
60-
aarch64|arm64) asset="glualint-${GLUALINT_VERSION}-aarch64-linux.zip" ;;
61-
*) echo "Unsupported architecture: $arch" >&2; exit 1 ;;
62-
esac
63-
url="https://github.com/FPtje/GLuaFixer/releases/download/${GLUALINT_VERSION}/${asset}"
64-
curl -fLsS "$url" -o glualint.zip
65-
unzip -o glualint.zip
66-
chmod +x glualint
67-
./glualint --version
68-
- name: Pretty-print all Lua files
69-
run: |
70-
find . -type f -name "*.lua" -print0 | xargs -0 ./glualint --pretty-print-files
71-
tar --exclude=.git -cf workspace.tar .
72-
- uses: actions/upload-artifact@v4
73-
with:
74-
name: workspace
75-
path: workspace.tar
76-
overwrite: true
77-
retention-days: 1
78-
7923
linter:
80-
needs: format-glua
8124
runs-on: ubuntu-latest
8225
steps:
8326
- uses: actions/checkout@v3
8427
with:
8528
path: modules
86-
- uses: actions/download-artifact@v4
87-
with:
88-
name: workspace
89-
path: .
90-
- run: |
91-
tar -xf workspace.tar
92-
rm -f workspace.tar
9329
- uses: leafo/gh-actions-lua@v8.0.0
9430
with:
9531
luaVersion: 5.2

0 commit comments

Comments
 (0)