mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-25 19:31:44 +03:00
;ci: clean up artifacts, use github platform names
This commit is contained in:
parent
6002917ee0
commit
0a16dd87bb
20
.github/workflows/linux.yml
vendored
20
.github/workflows/linux.yml
vendored
@ -193,7 +193,7 @@ jobs:
|
||||
|
||||
- name: Build hledger quickly warning free, run unit tests, run doc tests
|
||||
run: |
|
||||
stack $ARGS build --test --bench --fast --ghc-options=-Werror --no-terminal
|
||||
stack $ARGS install --test --bench --fast --ghc-options=-Werror --no-terminal
|
||||
# --pedantic --no-run-benchmarks
|
||||
env:
|
||||
ARGS: ${{ matrix.plan.args }}
|
||||
@ -221,25 +221,27 @@ jobs:
|
||||
env:
|
||||
ARGS: ${{ matrix.plan.args }}
|
||||
|
||||
# artifacts:
|
||||
|
||||
- name: Gather executables
|
||||
run: |
|
||||
mkdir tmp
|
||||
cd tmp
|
||||
mkdir hledger
|
||||
cd hledger
|
||||
cp `stack $ARGS exec -- which hledger` .
|
||||
cp `stack $ARGS exec -- which hledger-ui` .
|
||||
cp `stack $ARGS exec -- which hledger-web` .
|
||||
cp ~/.local/bin/hledger .
|
||||
cp ~/.local/bin/hledger-ui .
|
||||
cp ~/.local/bin/hledger-web .
|
||||
|
||||
- name: Create executables artifact
|
||||
- name: Upload executables artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: hledger-linux
|
||||
name: hledger-ubuntu
|
||||
path: tmp/hledger
|
||||
|
||||
# - name: show stuff
|
||||
# run: |
|
||||
# if [[ -e ~/.stack ]]; then ls -lFRa ~/.stack; fi
|
||||
|
||||
|
||||
|
||||
|
||||
# - name: show stuff
|
||||
# run: |
|
||||
|
14
.github/workflows/mac.yml
vendored
14
.github/workflows/mac.yml
vendored
@ -116,7 +116,7 @@ jobs:
|
||||
|
||||
- name: Build hledger and test unit tests, doc tests
|
||||
run: |
|
||||
stack build --test --ghc-options=-Werror
|
||||
stack install --test --ghc-options=-Werror
|
||||
# --pedantic
|
||||
|
||||
- name: Install shelltestrunner
|
||||
@ -130,18 +130,20 @@ jobs:
|
||||
export PATH=~/.local/bin:$PATH
|
||||
COLUMNS=80 stack exec -- shelltest --execdir -j16 tests -x /bin -x /addons
|
||||
|
||||
# artifacts:
|
||||
|
||||
- name: Gather executables
|
||||
run: |
|
||||
mkdir tmp
|
||||
cd tmp
|
||||
mkdir hledger
|
||||
cd hledger
|
||||
cp `stack exec -- which hledger` .
|
||||
cp `stack exec -- which hledger-ui` .
|
||||
cp `stack exec -- which hledger-web` .
|
||||
cp ~/.local/bin/hledger .
|
||||
cp ~/.local/bin/hledger-ui .
|
||||
cp ~/.local/bin/hledger-web .
|
||||
|
||||
- name: Create executables artifact
|
||||
- name: Upload executables artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: hledger-mac
|
||||
name: hledger-macos
|
||||
path: tmp/hledger
|
||||
|
12
.github/workflows/windows.yml
vendored
12
.github/workflows/windows.yml
vendored
@ -148,14 +148,7 @@ jobs:
|
||||
## - export PATH=~/.local/bin:$PATH
|
||||
#- COLUMNS=80 stack exec -- shelltest --execdir -j16 tests -x /bin -x /addons
|
||||
|
||||
# - name: Zip executables
|
||||
# #cd `stack path --local-bin`
|
||||
# run: |
|
||||
# cd C:\Users\runneradmin\AppData\Roaming\local\bin\
|
||||
# 7z a D:\a\hledger\hledger\hledger.zip hledger.exe hledger-web.exe
|
||||
|
||||
# github automatically zips every artifact, though it's not
|
||||
# apparent in the displayed link text and file size
|
||||
# artifacts:
|
||||
|
||||
- name: Gather executables
|
||||
run: |
|
||||
@ -169,5 +162,6 @@ jobs:
|
||||
- name: Create executables artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: hledger-win
|
||||
name: hledger-windows
|
||||
path: tmp/hledger
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user