;ci: cleanups
This commit is contained in:
parent
d883a74fe0
commit
58c277123e
@ -1,6 +1,8 @@
|
|||||||
# TRIGGER: Runs on any push to binaries-linux-x64-stack branch. Not normally used.
|
# Alternate binaries-linux workflow, using stack like the others for consistency. May not work.
|
||||||
# ACTION: Builds, unit-tests and saves mac x64 static binaries with stack and the default ghc. May not work,
|
# Currently the cabal-based binaries-linux-x64.yml is used instead, for cabal testing and for easier static building.
|
||||||
# the cabal-based binaries-linux-x64.yml is normally used instead.
|
#
|
||||||
|
# TRIGGER: Runs on any push to binaries-linux-x64-stack branch.
|
||||||
|
# ACTION: Builds, unit-tests and saves mac x64 static binaries with stack and the default ghc.
|
||||||
|
|
||||||
name: binaries-linux-x64-stack
|
name: binaries-linux-x64-stack
|
||||||
on:
|
on:
|
||||||
@ -119,15 +121,16 @@ jobs:
|
|||||||
- name: Gather binaries
|
- name: Gather binaries
|
||||||
run: |
|
run: |
|
||||||
mkdir tmp
|
mkdir tmp
|
||||||
cp hledger/shell-completion/hledger-completion.bash hledger/embeddedfiles/*.{1,info} tmp
|
cp ~/.local/bin/hledger tmp
|
||||||
cd tmp
|
cp ~/.local/bin/hledger-ui tmp
|
||||||
cp ~/.local/bin/hledger .
|
cp ~/.local/bin/hledger-web tmp
|
||||||
cp ~/.local/bin/hledger-ui .
|
cp hledger/embeddedfiles/*.1 tmp
|
||||||
cp ~/.local/bin/hledger-web .
|
cp hledger/embeddedfiles/*.info tmp
|
||||||
strip hledger
|
cp hledger/shell-completion/hledger-completion.bash tmp
|
||||||
strip hledger-ui
|
strip tmp/hledger
|
||||||
strip hledger-web
|
strip tmp/hledger-ui
|
||||||
tar cvf hledger-mac-x64.tar hledger hledger-ui hledger-web hledger-completion.bash
|
strip tmp/hledger-web
|
||||||
|
tar -C tmp cvf hledger-linux-x64.tar hledger hledger-ui hledger-web hledger-completion.bash
|
||||||
|
|
||||||
# upload-artifact loses execute permissions, so we tar the binaries to preserve them.
|
# upload-artifact loses execute permissions, so we tar the binaries to preserve them.
|
||||||
# github UI always zips artifacts when they are downloaded, so we don't bother compressing the tar.
|
# github UI always zips artifacts when they are downloaded, so we don't bother compressing the tar.
|
||||||
13
.github/workflows/binaries-linux-x64.yml
vendored
13
.github/workflows/binaries-linux-x64.yml
vendored
@ -72,12 +72,13 @@ jobs:
|
|||||||
cp dist-newstyle/build/x86_64-linux/ghc-*/hledger-*/x/hledger/build/hledger/hledger tmp
|
cp dist-newstyle/build/x86_64-linux/ghc-*/hledger-*/x/hledger/build/hledger/hledger tmp
|
||||||
cp dist-newstyle/build/x86_64-linux/ghc-*/hledger-ui-*/x/hledger-ui/build/hledger-ui/hledger-ui tmp
|
cp dist-newstyle/build/x86_64-linux/ghc-*/hledger-ui-*/x/hledger-ui/build/hledger-ui/hledger-ui tmp
|
||||||
cp dist-newstyle/build/x86_64-linux/ghc-*/hledger-web-*/x/hledger-web/build/hledger-web/hledger-web tmp
|
cp dist-newstyle/build/x86_64-linux/ghc-*/hledger-web-*/x/hledger-web/build/hledger-web/hledger-web tmp
|
||||||
cp hledger/shell-completion/hledger-completion.bash hledger/embeddedfiles/*.1 hledger/embeddedfiles/*.info tmp
|
cp hledger/embeddedfiles/*.1 tmp
|
||||||
cd tmp
|
cp hledger/embeddedfiles/*.info tmp
|
||||||
strip hledger
|
cp hledger/shell-completion/hledger-completion.bash tmp
|
||||||
strip hledger-ui
|
strip tmp/hledger
|
||||||
strip hledger-web
|
strip tmp/hledger-ui
|
||||||
tar cvf hledger-linux-x64.tar hledger hledger-ui hledger-web hledger-completion.bash
|
strip tmp/hledger-web
|
||||||
|
tar -C tmp cvf hledger-linux-x64.tar hledger hledger-ui hledger-web hledger-completion.bash
|
||||||
|
|
||||||
# upload-artifact loses execute permissions, so we tar the binaries to preserve them.
|
# upload-artifact loses execute permissions, so we tar the binaries to preserve them.
|
||||||
# github UI always zips artifacts when they are downloaded, so we don't bother compressing the tar.
|
# github UI always zips artifacts when they are downloaded, so we don't bother compressing the tar.
|
||||||
|
|||||||
19
.github/workflows/binaries-mac-arm64.yml
vendored
19
.github/workflows/binaries-mac-arm64.yml
vendored
@ -157,15 +157,16 @@ jobs:
|
|||||||
- name: Gather binaries
|
- name: Gather binaries
|
||||||
run: |
|
run: |
|
||||||
mkdir tmp
|
mkdir tmp
|
||||||
cp hledger/shell-completion/hledger-completion.bash hledger/embeddedfiles/*.{1,info} tmp
|
cp ~/.local/bin/hledger tmp
|
||||||
cd tmp
|
cp ~/.local/bin/hledger-ui tmp
|
||||||
cp ~/.local/bin/hledger .
|
cp ~/.local/bin/hledger-web tmp
|
||||||
cp ~/.local/bin/hledger-ui .
|
cp hledger/embeddedfiles/*.1 tmp
|
||||||
cp ~/.local/bin/hledger-web .
|
cp hledger/embeddedfiles/*.info tmp
|
||||||
strip hledger
|
cp hledger/shell-completion/hledger-completion.bash tmp
|
||||||
strip hledger-ui
|
strip tmp/hledger
|
||||||
strip hledger-web
|
strip tmp/hledger-ui
|
||||||
tar cvf hledger-mac-arm64.tar hledger hledger-ui hledger-web hledger-completion.bash
|
strip tmp/hledger-web
|
||||||
|
tar -C tmp cvf hledger-mac-arm64.tar hledger hledger-ui hledger-web hledger-completion.bash
|
||||||
|
|
||||||
# upload-artifact loses execute permissions, so we tar the binaries to preserve them.
|
# upload-artifact loses execute permissions, so we tar the binaries to preserve them.
|
||||||
# github UI always zips artifacts when they are downloaded, so we don't bother compressing the tar.
|
# github UI always zips artifacts when they are downloaded, so we don't bother compressing the tar.
|
||||||
|
|||||||
19
.github/workflows/binaries-mac-x64.yml
vendored
19
.github/workflows/binaries-mac-x64.yml
vendored
@ -144,15 +144,16 @@ jobs:
|
|||||||
- name: Gather binaries
|
- name: Gather binaries
|
||||||
run: |
|
run: |
|
||||||
mkdir tmp
|
mkdir tmp
|
||||||
cp hledger/shell-completion/hledger-completion.bash hledger/embeddedfiles/*.{1,info} tmp
|
cp ~/.local/bin/hledger tmp
|
||||||
cd tmp
|
cp ~/.local/bin/hledger-ui tmp
|
||||||
cp ~/.local/bin/hledger .
|
cp ~/.local/bin/hledger-web tmp
|
||||||
cp ~/.local/bin/hledger-ui .
|
cp hledger/embeddedfiles/*.1 tmp
|
||||||
cp ~/.local/bin/hledger-web .
|
cp hledger/embeddedfiles/*.info tmp
|
||||||
strip hledger
|
cp hledger/shell-completion/hledger-completion.bash tmp
|
||||||
strip hledger-ui
|
strip tmp/hledger
|
||||||
strip hledger-web
|
strip tmp/hledger-ui
|
||||||
tar cvf hledger-mac-x64.tar hledger hledger-ui hledger-web hledger-completion.bash
|
strip tmp/hledger-web
|
||||||
|
tar -C tmp cvf hledger-mac-x64.tar hledger hledger-ui hledger-web hledger-completion.bash
|
||||||
|
|
||||||
# upload-artifact loses execute permissions, so we tar the binaries to preserve them.
|
# upload-artifact loses execute permissions, so we tar the binaries to preserve them.
|
||||||
# github UI always zips artifacts when they are downloaded, so we don't bother compressing the tar.
|
# github UI always zips artifacts when they are downloaded, so we don't bother compressing the tar.
|
||||||
|
|||||||
17
.github/workflows/binaries-windows-x64.yml
vendored
17
.github/workflows/binaries-windows-x64.yml
vendored
@ -147,14 +147,15 @@ jobs:
|
|||||||
- name: Gather binaries
|
- name: Gather binaries
|
||||||
run: |
|
run: |
|
||||||
mkdir tmp
|
mkdir tmp
|
||||||
cp hledger/shell-completion/hledger-completion.bash hledger/embeddedfiles/*.{1,info} tmp
|
cp /C/Users/runneradmin/AppData/Roaming/local/bin/hledger.exe tmp
|
||||||
cd tmp
|
cp /C/Users/runneradmin/AppData/Roaming/local/bin/hledger-ui.exe tmp
|
||||||
cp /C/Users/runneradmin/AppData/Roaming/local/bin/hledger.exe .
|
cp /C/Users/runneradmin/AppData/Roaming/local/bin/hledger-web.exe tmp
|
||||||
cp /C/Users/runneradmin/AppData/Roaming/local/bin/hledger-ui.exe .
|
cp hledger/embeddedfiles/*.1 tmp
|
||||||
cp /C/Users/runneradmin/AppData/Roaming/local/bin/hledger-web.exe .
|
cp hledger/embeddedfiles/*.info tmp
|
||||||
strip hledger.exe
|
cp hledger/shell-completion/hledger-completion.bash tmp
|
||||||
strip hledger-ui.exe
|
strip tmp/hledger.exe
|
||||||
strip hledger-web.exe
|
strip tmp/hledger-ui.exe
|
||||||
|
strip tmp/hledger-web.exe
|
||||||
|
|
||||||
- name: Create binaries artifact
|
- name: Create binaries artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|||||||
46
.github/workflows/old/release.yml
vendored
46
.github/workflows/old/release.yml
vendored
@ -1,46 +0,0 @@
|
|||||||
# Runs on push of a [0-9]* or r[0-9]* tag (to any branch ?)
|
|
||||||
|
|
||||||
# Creates a draft github release.
|
|
||||||
# See https://github.com/actions/create-release, still pretty rough as of 20200609.
|
|
||||||
# see also: https://github.com/marketplace/actions/tag-release-on-push-action
|
|
||||||
|
|
||||||
name: create release
|
|
||||||
|
|
||||||
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestbranchestags
|
|
||||||
# also: "The action does not seem to work for tags created before the workflow."
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- '[0-9]+.[0-9]+'
|
|
||||||
- '[0-9]+.[0-9]+-*'
|
|
||||||
- '[0-9]+.[0-9]+.[0-9]+'
|
|
||||||
- '[0-9]+.[0-9]+.[0-9]+-*'
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
release:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
# - name: Create Release (actions/create-release)
|
|
||||||
# id: create_release
|
|
||||||
# uses: actions/create-release@v1
|
|
||||||
# env:
|
|
||||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
|
|
||||||
# with:
|
|
||||||
# tag_name: X.Y
|
|
||||||
# release_name: X.Y
|
|
||||||
# body: |
|
|
||||||
# CHANGE 1; CHANGE 2.
|
|
||||||
# https://hledger.org/release-notes.html#hledger-X-Y
|
|
||||||
# draft: true
|
|
||||||
# prerelease: true
|
|
||||||
|
|
||||||
- name: Create Release (softprops/action-gh-release)
|
|
||||||
uses: softprops/action-gh-release@v1
|
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
14
.github/workflows/release.yml
vendored
14
.github/workflows/release.yml
vendored
@ -97,13 +97,6 @@ jobs:
|
|||||||
allow_forks: false
|
allow_forks: false
|
||||||
path: artifacts
|
path: artifacts
|
||||||
|
|
||||||
- name: Get artifact from latest successful binaries-mac-x64 run
|
|
||||||
uses: dawidd6/action-download-artifact@09f2f74827fd3a8607589e5ad7f9398816f540fe
|
|
||||||
with:
|
|
||||||
workflow: binaries-mac-x64.yml
|
|
||||||
allow_forks: false
|
|
||||||
path: artifacts
|
|
||||||
|
|
||||||
- name: Get artifact from latest successful binaries-mac-arm64 run
|
- name: Get artifact from latest successful binaries-mac-arm64 run
|
||||||
uses: dawidd6/action-download-artifact@09f2f74827fd3a8607589e5ad7f9398816f540fe
|
uses: dawidd6/action-download-artifact@09f2f74827fd3a8607589e5ad7f9398816f540fe
|
||||||
with:
|
with:
|
||||||
@ -111,6 +104,13 @@ jobs:
|
|||||||
allow_forks: false
|
allow_forks: false
|
||||||
path: artifacts
|
path: artifacts
|
||||||
|
|
||||||
|
- name: Get artifact from latest successful binaries-mac-x64 run
|
||||||
|
uses: dawidd6/action-download-artifact@09f2f74827fd3a8607589e5ad7f9398816f540fe
|
||||||
|
with:
|
||||||
|
workflow: binaries-mac-x64.yml
|
||||||
|
allow_forks: false
|
||||||
|
path: artifacts
|
||||||
|
|
||||||
- name: Inspect artifacts
|
- name: Inspect artifacts
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user