Skip to content

Commit

Permalink
Rename github workflow file and fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
regadas committed Jan 4, 2024
1 parent 7cf3dc5 commit 35d8bbc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/main.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: main
name: build
on: [push, pull_request]

jobs:
Expand Down Expand Up @@ -35,11 +35,10 @@ jobs:
if: ${{ matrix.os == 'macos-latest-xlarge' }}
run: curl -fL https://github.com/VirtusLab/coursier-m1/releases/latest/download/cs-aarch64-apple-darwin.gz | gzip -d > cs && chmod +x cs && (xattr -d com.apple.quarantine cs || true) && ./cs setup -y && echo "~/Library/Application Support/Coursier/bin" >> $GITHUB_PATH
- run: sbt test graalvm-native-image:packageBin
- run: cp modules/cli/target/graalvm-native-image/tfr tfr-${{ runner.os }}-${{ runner.arch }}
- uses: actions/upload-artifact@v4
with:
name: tfr-${{ runner.os }}-${{ runner.arch }}
path: tfr-${{ runner.os }}-${{ runner.arch }}
path: modules/cli/target/graalvm-native-image/tfr
retention-days: 1
release:
name: Release
Expand All @@ -52,13 +51,13 @@ jobs:
echo ${GITHUB_REF/refs\/tags\//}
echo ::set-output name=version::${GITHUB_REF/refs\/tags\//}
- uses: actions/download-artifact@v4
- run: zip -j tfr-Linux-X64-${{ steps.get_version.outputs.version }}.zip tfr-Linux-X64
- run: zip -j tfr-macOs-X64-${{ steps.get_version.outputs.version }}.zip tfr-macOs-X64
- run: zip -j tfr-macOs-ARM64-${{ steps.get_version.outputs.version }}.zip tfr-macOs-ARM64
- run: zip -j tfr-Linux-X64-${{ steps.get_version.outputs.version }}.zip tfr-Linux-X64/tfr
- run: zip -j tfr-macOS-X64-${{ steps.get_version.outputs.version }}.zip tfr-macOS-X64/tfr
- run: zip -j tfr-macOS-ARM64-${{ steps.get_version.outputs.version }}.zip tfr-macOS-ARM64/tfr
- id: upload-release-assets
uses: softprops/action-gh-release@v1
with:
files: |
tfr-Linux-X64-${{ steps.get_version.outputs.version }}.zip
tfr-macOs-X64-${{ steps.get_version.outputs.version }}.zip
tfr-macOs-ARM64-${{ steps.get_version.outputs.version }}.zip
tfr-macOS-X64-${{ steps.get_version.outputs.version }}.zip
tfr-macOS-ARM64-${{ steps.get_version.outputs.version }}.zip
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# tfreader ![](https://github.com/spotify/tfreader/workflows/main/badge.svg)
# tfreader [![build](https://github.com/spotify/tfreader/actions/workflows/build.yml/badge.svg)](https://github.com/spotify/tfreader/actions/workflows/build.yml)

Simple native CLI tool to read `TensorFlow` `TFRecords`.

Expand Down

0 comments on commit 35d8bbc

Please sign in to comment.