Skip to content

Commit 5674322

Browse files
authored
better caching and quiet install commands
1 parent b0b0a6e commit 5674322

1 file changed

Lines changed: 51 additions & 6 deletions

File tree

.github/workflows/main.yml

Lines changed: 51 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,19 @@ jobs:
1818
with:
1919
haxe-version: latest
2020

21+
- name: Retrieve Haxelib Cache
22+
id: windows-haxelib-cache
23+
uses: actions/cache@v4
24+
with:
25+
path: |
26+
C:/haxelib/**
27+
.haxelib/**
28+
key: ${{ runner.os }}-haxelib-cache
29+
2130
- name: Install Haxe Libraries using HxPKG
2231
run: |
2332
haxelib install hxpkg --quiet
24-
haxelib run hxpkg install --force
33+
haxelib run hxpkg install --quiet --update
2534
2635
- name: Compile Application
2736
run: haxelib run lime build windows
@@ -45,10 +54,19 @@ jobs:
4554
with:
4655
haxe-version: latest
4756

57+
- name: Retrieve Haxelib Cache
58+
id: macos-haxelib-cache
59+
uses: actions/cache@v4
60+
with:
61+
path: |
62+
~/haxelib/**
63+
.haxelib/**
64+
key: ${{ runner.os }}-haxelib-cache
65+
4866
- name: Install Haxe Libraries using HxPKG
4967
run: |
5068
haxelib install hxpkg --quiet
51-
haxelib run hxpkg install --force
69+
haxelib run hxpkg install --quiet --update
5270
5371
- name: Compile Application
5472
run: haxelib run lime build macos
@@ -72,11 +90,20 @@ jobs:
7290
with:
7391
haxe-version: latest
7492

93+
- name: Retrieve Haxelib Cache
94+
id: linux-haxelib-cache
95+
uses: actions/cache@v4
96+
with:
97+
path: |
98+
~/haxelib/**
99+
.haxelib/**
100+
key: ${{ runner.os }}-haxelib-cache
101+
75102
- name: Install Haxe Libraries using HxPKG
76103
run: |
77-
sudo apt -qq install libvlccore-dev libvlc-dev -y
104+
sudo apt install -qq libvlccore-dev libvlc-dev -y
78105
haxelib install hxpkg --quiet
79-
haxelib run hxpkg install --force
106+
haxelib run hxpkg install --quiet --update
80107
81108
- name: Compile Application
82109
run: haxelib run lime build linux
@@ -112,11 +139,20 @@ jobs:
112139
distribution: 'oracle'
113140
java-version: '17'
114141

142+
- name: Retrieve Haxelib Cache
143+
id: android-haxelib-cache
144+
uses: actions/cache@v4
145+
with:
146+
path: |
147+
~/haxelib/**
148+
.haxelib/**
149+
key: android-haxelib-cache
150+
115151
- name: Install Haxe Libraries using HxPKG
116152
run: |
117153
sudo apt install libvlccore-dev libvlc-dev -y -q
118154
haxelib install hxpkg --quiet
119-
haxelib run hxpkg install --force
155+
haxelib run hxpkg install --quiet --update
120156
121157
- name: Configure Android
122158
run: |
@@ -147,10 +183,19 @@ jobs:
147183
with:
148184
haxe-version: latest
149185

186+
- name: Retrieve Haxelib Cache
187+
id: ios-haxelib-cache
188+
uses: actions/cache@v4
189+
with:
190+
path: |
191+
~/haxelib/**
192+
.haxelib/**
193+
key: ios-haxelib-cache
194+
150195
- name: Install Haxe Libraries using HxPKG
151196
run: |
152197
haxelib install hxpkg --quiet
153-
haxelib run hxpkg install --force
198+
haxelib run hxpkg install --quiet --update
154199
155200
- name: Compile Application
156201
run: haxelib run lime build ios -nosign

0 commit comments

Comments
 (0)