Skip to content

Commit

Permalink
Tidy gh actions file
Browse files Browse the repository at this point in the history
  • Loading branch information
WGUNDERWOOD committed Jan 13, 2025
1 parent 53e608b commit e5c9e97
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,24 @@ jobs:
if: ${{ matrix.program == 'cross' }}
run: cargo install cross
- name: Build
run: ${{ matrix.program }} build --target ${{ matrix.target }} --all-features --release --locked
run: |
${{ matrix.program }} build --target ${{ matrix.target }} \
--all-features --release --locked
- name: Compress (windows)
if: ${{ contains(matrix.os, 'windows') }}
run: ${{ format('Compress-Archive target/{0}/release/tex-fmt.exe {1}', matrix.target, matrix.archive) }}
run: |
${{ format('Compress-Archive target/{0}/release/tex-fmt.exe {1}', \
matrix.target, matrix.archive) }}
- name: Compress (macos)
if: ${{ contains(matrix.os, 'macos') }}
run: ${{ format('gtar -czvf {1} -C target/{0}/release tex-fmt', matrix.target, matrix.archive) }}
run: |
${{ format('gtar -czvf {1} -C target/{0}/release tex-fmt', \
matrix.target, matrix.archive) }}
- name: Compress (linux)
if: ${{ contains(matrix.os, 'ubuntu') }}
run: ${{ format('tar -czvf {1} -C target/{0}/release tex-fmt', matrix.target, matrix.archive) }}
run: |
${{ format('tar -czvf {1} -C target/{0}/release tex-fmt', \
matrix.target, matrix.archive) }}
- name: Upload binary archive
uses: actions/upload-artifact@v4
with:
Expand All @@ -79,7 +87,9 @@ jobs:
- uses: actions/download-artifact@v4
- name: Publish binaries
run: |
gh release upload ${{ github.ref_name }} $(find . -iname tex-fmt*.zip)
gh release upload ${{ github.ref_name }} $(find . -iname tex-fmt*.tar.gz)
gh release upload \
${{ github.ref_name }} $(find . -iname tex-fmt*.zip)
gh release upload \
${{ github.ref_name }} $(find . -iname tex-fmt*.tar.gz)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion notes.org
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#+title: tex-fmt
* Tasks
** TODO Work on browser version
** TODO Actions yaml long lines
** TODO Indicate which args are CLI and which are config
** TODO Restructure tests to include config file
** TODO Add to Nix home-manager with empty config file
** TODO Update wasm-bindgen to 0.2.99 when released in nixpkgs
* Options and documentation
Expand Down

0 comments on commit e5c9e97

Please sign in to comment.