Skip to content

Commit f5120dc

Browse files
committed
ci: the checks should retrieve the latest version of arkscript and use this artifact to run the tests
1 parent d53abc7 commit f5120dc

File tree

2 files changed

+12
-60
lines changed

2 files changed

+12
-60
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,24 @@ jobs:
1313
steps:
1414
- name: Checkout std
1515
uses: actions/checkout@v2
16-
17-
- name: Download Linux artifact
18-
uses: dawidd6/action-download-artifact@v2
16+
17+
- uses: robinraju/release-downloader@v1.5
1918
with:
20-
github_token: ${{secrets.GITHUB_TOKEN}}
21-
workflow: ci.yml
22-
branch: dev
23-
name: ubuntu-gcc-10
24-
path: bin
25-
repo: ArkScript-lang/Ark
26-
19+
latest: true
20+
repository: ArkScript-lang/Ark
21+
fileName: "linux-gcc-11.zip"
22+
2723
- name: Set up files
2824
shell: bash
2925
run: |
30-
cd bin
31-
cp lib/*.arkm ../
32-
chmod u+x arkscript *.so
33-
cp arkscript ../
34-
cp *.so ../
26+
unzip linux-gcc-11.zip
27+
chmod u+x arkscript *.so lib/*.arkm
28+
cp lib/*.arkm ./
3529
3630
- name: Tests
3731
shell: bash
3832
run: |
3933
./arkscript --version
40-
if [ -f tests/all.ark ]; then
41-
./arkscript tests/all.ark -L ./
42-
else
43-
echo "No tests found"
44-
fi
34+
for f in tests/*.ark; do
35+
./arkscript $f -L ./
36+
done

tests/all.ark

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)