Skip to content

Commit 58c2771

Browse files
committed
;ci: cleanups
1 parent d883a74 commit 58c2771

File tree

8 files changed

+55
-94
lines changed

8 files changed

+55
-94
lines changed

.github/workflows/binaries-linux-x64-stack.yml renamed to .github/workflows/_binaries-linux-x64-stack.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# TRIGGER: Runs on any push to binaries-linux-x64-stack branch. Not normally used.
2-
# ACTION: Builds, unit-tests and saves mac x64 static binaries with stack and the default ghc. May not work,
3-
# the cabal-based binaries-linux-x64.yml is normally used instead.
1+
# Alternate binaries-linux workflow, using stack like the others for consistency. May not work.
2+
# Currently the cabal-based binaries-linux-x64.yml is used instead, for cabal testing and for easier static building.
3+
#
4+
# TRIGGER: Runs on any push to binaries-linux-x64-stack branch.
5+
# ACTION: Builds, unit-tests and saves mac x64 static binaries with stack and the default ghc.
46

57
name: binaries-linux-x64-stack
68
on:
@@ -119,15 +121,16 @@ jobs:
119121
- name: Gather binaries
120122
run: |
121123
mkdir tmp
122-
cp hledger/shell-completion/hledger-completion.bash hledger/embeddedfiles/*.{1,info} tmp
123-
cd tmp
124-
cp ~/.local/bin/hledger .
125-
cp ~/.local/bin/hledger-ui .
126-
cp ~/.local/bin/hledger-web .
127-
strip hledger
128-
strip hledger-ui
129-
strip hledger-web
130-
tar cvf hledger-mac-x64.tar hledger hledger-ui hledger-web hledger-completion.bash
124+
cp ~/.local/bin/hledger tmp
125+
cp ~/.local/bin/hledger-ui tmp
126+
cp ~/.local/bin/hledger-web tmp
127+
cp hledger/embeddedfiles/*.1 tmp
128+
cp hledger/embeddedfiles/*.info tmp
129+
cp hledger/shell-completion/hledger-completion.bash tmp
130+
strip tmp/hledger
131+
strip tmp/hledger-ui
132+
strip tmp/hledger-web
133+
tar -C tmp cvf hledger-linux-x64.tar hledger hledger-ui hledger-web hledger-completion.bash
131134
132135
# upload-artifact loses execute permissions, so we tar the binaries to preserve them.
133136
# github UI always zips artifacts when they are downloaded, so we don't bother compressing the tar.

.github/workflows/binaries-linux-x64.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,13 @@ jobs:
7272
cp dist-newstyle/build/x86_64-linux/ghc-*/hledger-*/x/hledger/build/hledger/hledger tmp
7373
cp dist-newstyle/build/x86_64-linux/ghc-*/hledger-ui-*/x/hledger-ui/build/hledger-ui/hledger-ui tmp
7474
cp dist-newstyle/build/x86_64-linux/ghc-*/hledger-web-*/x/hledger-web/build/hledger-web/hledger-web tmp
75-
cp hledger/shell-completion/hledger-completion.bash hledger/embeddedfiles/*.1 hledger/embeddedfiles/*.info tmp
76-
cd tmp
77-
strip hledger
78-
strip hledger-ui
79-
strip hledger-web
80-
tar cvf hledger-linux-x64.tar hledger hledger-ui hledger-web hledger-completion.bash
75+
cp hledger/embeddedfiles/*.1 tmp
76+
cp hledger/embeddedfiles/*.info tmp
77+
cp hledger/shell-completion/hledger-completion.bash tmp
78+
strip tmp/hledger
79+
strip tmp/hledger-ui
80+
strip tmp/hledger-web
81+
tar -C tmp cvf hledger-linux-x64.tar hledger hledger-ui hledger-web hledger-completion.bash
8182
8283
# upload-artifact loses execute permissions, so we tar the binaries to preserve them.
8384
# github UI always zips artifacts when they are downloaded, so we don't bother compressing the tar.

.github/workflows/binaries-mac-arm64.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -157,15 +157,16 @@ jobs:
157157
- name: Gather binaries
158158
run: |
159159
mkdir tmp
160-
cp hledger/shell-completion/hledger-completion.bash hledger/embeddedfiles/*.{1,info} tmp
161-
cd tmp
162-
cp ~/.local/bin/hledger .
163-
cp ~/.local/bin/hledger-ui .
164-
cp ~/.local/bin/hledger-web .
165-
strip hledger
166-
strip hledger-ui
167-
strip hledger-web
168-
tar cvf hledger-mac-arm64.tar hledger hledger-ui hledger-web hledger-completion.bash
160+
cp ~/.local/bin/hledger tmp
161+
cp ~/.local/bin/hledger-ui tmp
162+
cp ~/.local/bin/hledger-web tmp
163+
cp hledger/embeddedfiles/*.1 tmp
164+
cp hledger/embeddedfiles/*.info tmp
165+
cp hledger/shell-completion/hledger-completion.bash tmp
166+
strip tmp/hledger
167+
strip tmp/hledger-ui
168+
strip tmp/hledger-web
169+
tar -C tmp cvf hledger-mac-arm64.tar hledger hledger-ui hledger-web hledger-completion.bash
169170
170171
# upload-artifact loses execute permissions, so we tar the binaries to preserve them.
171172
# github UI always zips artifacts when they are downloaded, so we don't bother compressing the tar.

.github/workflows/binaries-mac-x64.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,16 @@ jobs:
144144
- name: Gather binaries
145145
run: |
146146
mkdir tmp
147-
cp hledger/shell-completion/hledger-completion.bash hledger/embeddedfiles/*.{1,info} tmp
148-
cd tmp
149-
cp ~/.local/bin/hledger .
150-
cp ~/.local/bin/hledger-ui .
151-
cp ~/.local/bin/hledger-web .
152-
strip hledger
153-
strip hledger-ui
154-
strip hledger-web
155-
tar cvf hledger-mac-x64.tar hledger hledger-ui hledger-web hledger-completion.bash
147+
cp ~/.local/bin/hledger tmp
148+
cp ~/.local/bin/hledger-ui tmp
149+
cp ~/.local/bin/hledger-web tmp
150+
cp hledger/embeddedfiles/*.1 tmp
151+
cp hledger/embeddedfiles/*.info tmp
152+
cp hledger/shell-completion/hledger-completion.bash tmp
153+
strip tmp/hledger
154+
strip tmp/hledger-ui
155+
strip tmp/hledger-web
156+
tar -C tmp cvf hledger-mac-x64.tar hledger hledger-ui hledger-web hledger-completion.bash
156157
157158
# upload-artifact loses execute permissions, so we tar the binaries to preserve them.
158159
# github UI always zips artifacts when they are downloaded, so we don't bother compressing the tar.

.github/workflows/binaries-windows-x64.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,15 @@ jobs:
147147
- name: Gather binaries
148148
run: |
149149
mkdir tmp
150-
cp hledger/shell-completion/hledger-completion.bash hledger/embeddedfiles/*.{1,info} tmp
151-
cd tmp
152-
cp /C/Users/runneradmin/AppData/Roaming/local/bin/hledger.exe .
153-
cp /C/Users/runneradmin/AppData/Roaming/local/bin/hledger-ui.exe .
154-
cp /C/Users/runneradmin/AppData/Roaming/local/bin/hledger-web.exe .
155-
strip hledger.exe
156-
strip hledger-ui.exe
157-
strip hledger-web.exe
150+
cp /C/Users/runneradmin/AppData/Roaming/local/bin/hledger.exe tmp
151+
cp /C/Users/runneradmin/AppData/Roaming/local/bin/hledger-ui.exe tmp
152+
cp /C/Users/runneradmin/AppData/Roaming/local/bin/hledger-web.exe tmp
153+
cp hledger/embeddedfiles/*.1 tmp
154+
cp hledger/embeddedfiles/*.info tmp
155+
cp hledger/shell-completion/hledger-completion.bash tmp
156+
strip tmp/hledger.exe
157+
strip tmp/hledger-ui.exe
158+
strip tmp/hledger-web.exe
158159
159160
- name: Create binaries artifact
160161
uses: actions/upload-artifact@v4

.github/workflows/old/release.yml

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

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,17 @@ jobs:
9797
allow_forks: false
9898
path: artifacts
9999

100-
- name: Get artifact from latest successful binaries-mac-x64 run
100+
- name: Get artifact from latest successful binaries-mac-arm64 run
101101
uses: dawidd6/action-download-artifact@09f2f74827fd3a8607589e5ad7f9398816f540fe
102102
with:
103-
workflow: binaries-mac-x64.yml
103+
workflow: binaries-mac-arm64.yml
104104
allow_forks: false
105105
path: artifacts
106106

107-
- name: Get artifact from latest successful binaries-mac-arm64 run
107+
- name: Get artifact from latest successful binaries-mac-x64 run
108108
uses: dawidd6/action-download-artifact@09f2f74827fd3a8607589e5ad7f9398816f540fe
109109
with:
110-
workflow: binaries-mac-arm64.yml
110+
workflow: binaries-mac-x64.yml
111111
allow_forks: false
112112
path: artifacts
113113

0 commit comments

Comments
 (0)