;ci: rename the static linux things
This commit is contained in:
parent
e8cb743a23
commit
8b1650c6af
@ -27,28 +27,28 @@ jobs:
|
||||
with:
|
||||
file: ./docker-static-arm32v7/Dockerfile
|
||||
platforms: linux/arm
|
||||
tags: hledger-static-linux-arm32v7:latest
|
||||
tags: hledger-linux-static-arm32v7:latest
|
||||
load: true
|
||||
|
||||
- name: Extract binaries from docker
|
||||
run: |
|
||||
# Create temporary container from it
|
||||
container_id=$(docker create hledger-static-linux-arm32v7:latest)
|
||||
container_id=$(docker create hledger-linux-static-arm32v7:latest)
|
||||
# Copy stuff from temp container
|
||||
docker cp $container_id:/root/hledger /tmp/hledger-static-linux-arm32v7
|
||||
docker cp $container_id:/root/hledger /tmp/hledger-linux-static-arm32v7
|
||||
# Delete temp container
|
||||
docker rm -v $container_id
|
||||
|
||||
- name: Upload binary
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Static Binary
|
||||
path: /tmp/hledger-static-linux-arm32v7
|
||||
name: hledger-linux-static-arm32v7
|
||||
path: /tmp/hledger-linux-static-arm32v7
|
||||
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
files: /tmp/hledger-static-linux-arm32v7
|
||||
files: /tmp/hledger-linux-static-arm32v7
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
@ -36,17 +36,17 @@ jobs:
|
||||
- name: Extract and strip binaries
|
||||
run: |
|
||||
mkdir /tmp/hledger
|
||||
cp dist-newstyle/build/x86_64-linux/ghc-*/hledger-web-*/x/hledger-web/build/hledger-web/hledger-web /tmp/hledger/hledger-web-static-linux-x64
|
||||
cp dist-newstyle/build/x86_64-linux/ghc-*/hledger-ui-*/x/hledger-ui/build/hledger-ui/hledger-ui /tmp/hledger/hledger-ui-static-linux-x64
|
||||
cp dist-newstyle/build/x86_64-linux/ghc-*/hledger-*/x/hledger/build/hledger/hledger /tmp/hledger/hledger-static-linux-x64
|
||||
strip /tmp/hledger/hledger-web-static-linux-x64
|
||||
strip /tmp/hledger/hledger-ui-static-linux-x64
|
||||
strip /tmp/hledger/hledger-static-linux-x64
|
||||
cp dist-newstyle/build/x86_64-linux/ghc-*/hledger-web-*/x/hledger-web/build/hledger-web/hledger-web /tmp/hledger/hledger-web-linux-static-x64
|
||||
cp dist-newstyle/build/x86_64-linux/ghc-*/hledger-ui-*/x/hledger-ui/build/hledger-ui/hledger-ui /tmp/hledger/hledger-ui-linux-static-x64
|
||||
cp dist-newstyle/build/x86_64-linux/ghc-*/hledger-*/x/hledger/build/hledger/hledger /tmp/hledger/hledger-linux-static-x64
|
||||
strip /tmp/hledger/hledger-web-linux-static-x64
|
||||
strip /tmp/hledger/hledger-ui-linux-static-x64
|
||||
strip /tmp/hledger/hledger-linux-static-x64
|
||||
|
||||
- name: Upload binaries
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Static Binaries
|
||||
name: hledger-linux-static-x64
|
||||
path: /tmp/hledger
|
||||
|
||||
- name: Release
|
||||
@ -54,8 +54,8 @@ jobs:
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
files: |
|
||||
/tmp/hledger/hledger-static-linux-x64
|
||||
/tmp/hledger/hledger-web-static-linux-x64
|
||||
/tmp/hledger/hledger-ui-static-linux-x64
|
||||
/tmp/hledger/hledger-linux-static-x64
|
||||
/tmp/hledger/hledger-web-linux-static-x64
|
||||
/tmp/hledger/hledger-ui-linux-static-x64
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Loading…
Reference in New Issue
Block a user