Skip to content

Commit

Permalink
add turbo cache and try to fix version grabbing
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Cassidy <steve.cassidy@mq.edu.au>
  • Loading branch information
stevecassidy committed Aug 21, 2024
1 parent 498c5a6 commit 54a63fa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/nightly-android-testbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,20 @@ jobs:
outputs:
prnum: ${{ steps.prnum.outputs.value }}
steps:
- name: Configure Turborepo Remote Cache
run: |
mkdir -p .turbo
if [ -n "${{ vars.TURBO_API_URL }}" ]; then
echo '{"apiurl": "${{ vars.TURBO_API_URL }}"}' > .turbo/config.json
echo "Turborepo config file created at .turbo/config.json"
else
echo "TURBO_API_URL not set. Skipping Turborepo cache configuration."
fi
if [ -n "$TURBO_TEAM" ] && [ -n "$TURBO_TOKEN" ]; then
echo "TURBO_TEAM and TURBO_TOKEN environment variables set"
else
echo "TURBO_TEAM and/or TURBO_TOKEN not set. Remote caching may not be available."
fi
- uses: actions/checkout@v4
- name: Cache node modules
uses: actions/cache@v3
Expand Down
2 changes: 1 addition & 1 deletion app/bin/getDescribeString.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
# get some git commit info
descstring=$(git rev-parse HEAD | cut -c 1-8)
# get the version number from package.json in the app project
version=$(grep '"version":' $SCRIPT_DIR/../package.json | cut -d: -f 2 | sed -e 's/[", ]//g')
version=$(grep '"version":' app/package.json | cut -d: -f 2 | sed -e 's/[", ]//g')
# put them together in a nice format
echo "v${version}-${platform}-#${descstring}"

0 comments on commit 54a63fa

Please sign in to comment.