Skip to content

Commit 9a7e876

Browse files
committed
Separate out Windows CI
1 parent 0071b22 commit 9a7e876

2 files changed

Lines changed: 37 additions & 13 deletions

File tree

.github/workflows/jar-builder.yml

Lines changed: 30 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,14 @@ jobs:
2525
if: ${{ !env.ACT }}
2626
uses: DeterminateSystems/magic-nix-cache-action@main
2727

28-
- name: Cache Clojure and Conveyor dependencies
28+
- name: Cache Clojure Dependencies
2929
if: ${{ !env.ACT }}
30-
uses: actions/cache@v4
30+
id: cache-clojure-deps-restore
31+
uses: actions/cache@v5
3132
with:
3233
path: |
3334
~/.m2/repository
34-
~/.gitlibs
35-
~/.conveyor-cache
36-
key: deps-${{ hashFiles('**/deps.edn', '**/conveyor.conf') }}
35+
key: deps-${{ hashFiles('**/deps.edn') }}
3736
restore-keys: |
3837
deps-
3938
@@ -47,16 +46,12 @@ jobs:
4746
DATE=$(date '+%Y-%m-%d')
4847
echo "date=$DATE" >> "$GITHUB_ENV"
4948
50-
- name: Build JAR and Conveyor packages
49+
- name: Build JAR
5150
env:
5251
VMS_URL: ${{ secrets.VMS_URL }}
5352
VMS_AUTH_TOKEN: ${{ secrets.VMS_AUTH_TOKEN }}
54-
CONVEYOR_CACHE_PATH: ~/.conveyor-cache
5553
run: |
5654
cd projects/behave
57-
58-
# Create cache directory
59-
mkdir -p "$CONVEYOR_CACHE_PATH"
6055
export NIXPKGS_ALLOW_UNFREE=1
6156
6257
# Use Nix development environment to build everything
@@ -68,6 +63,15 @@ jobs:
6863
bb uber
6964
"
7065
66+
- name: Save Clojure Dependencies
67+
if: ${{ !env.ACT && !cancelled() }}
68+
id: cache-clojure-deps-save
69+
uses: actions/cache/save@v5
70+
with:
71+
path: |
72+
~/.m2/repository
73+
key: ${{ steps.cache-clojure-deps-restore.outputs.cache-primary-key }}
74+
7175
- name: List built artifacts
7276
run: |
7377
ls -lh projects/behave/target/*.jar || true
@@ -106,9 +110,10 @@ jobs:
106110
if: ${{ !env.ACT }}
107111
uses: DeterminateSystems/magic-nix-cache-action@main
108112

109-
- name: Cache Conveyor dependencies
113+
- name: Cache Conveyor Dependencies
110114
if: ${{ !env.ACT }}
111-
uses: actions/cache@v4
115+
id: cache-conveyor-restore
116+
uses: actions/cache@v5
112117
with:
113118
path: |
114119
~/.conveyor-cache
@@ -119,11 +124,23 @@ jobs:
119124
- name: Build Windows package
120125
env:
121126
CONVEYOR_CACHE_PATH: ~/.conveyor-cache
127+
CONVEYOR_ROOT_KEY: ${{ secrets.CONVEYOR_ROOT_KEY }}
122128
run: |
123129
cd projects/behave
124130
mkdir -p "$CONVEYOR_CACHE_PATH"
125131
export NIXPKGS_ALLOW_UNFREE=1
126-
nix develop --impure --command conveyor make windows-zip
132+
nix develop --impure --command bash -c "
133+
conveyor -f conveyor.windows.conf make windows-zip
134+
"
135+
136+
- name: Save Conveyor Dependencies
137+
if: ${{ !env.ACT && !cancelled() }}
138+
id: cache-conveyor-save
139+
uses: actions/cache/save@v5
140+
with:
141+
path: |
142+
~/.conveyor-cache
143+
key: ${{ steps.cache-conveyor-restore.outputs.cache-primary-key }}
127144

128145
- name: Upload Windows package
129146
uses: actions/upload-artifact@v4
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
include required("conveyor.conf")
2+
3+
app {
4+
machines = [windows.amd64]
5+
sign = false
6+
}
7+

0 commit comments

Comments
 (0)