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