debug actions #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: CI | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the "main" branch | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: paulhatch/semantic-version@v5.1.0 | |
id: semver | |
with: | |
# The prefix to use to identify tags | |
tag_prefix: "v" | |
# A string to determine the format of the version output | |
# version_format: "${major}.${minor}.${patch}-prerelease${increment}" | |
version_format: "${major}.${minor}.${patch}" | |
# If this is set to true, *every* commit will be treated as a new version. | |
bump_each_commit: true | |
# If bump_each_commit is also set to true, setting this value will cause the version to increment only if the pattern specified is matched. | |
search_commit_body: false | |
# Prevents pre-v1.0.0 version from automatically incrementing the major version. | |
# If enabled, when the major version is 0, major releases will be treated as minor and minor as patch. Note that the version_type output is unchanged. | |
enable_prerelease_mode: true | |
- name: Use the version | |
run: | | |
echo ${{ steps.semver.outputs.version }} | |
- name: Get SDK | |
run: | | |
sudo bash ./.github/workflows/download_sdk.sh /garminsdk 4.2.4 | |
- name: Get Devices | |
env: | |
AZURE_KEYS_SAS: ${{ secrets.AZURE_KEYS_SAS }} | |
run: | | |
curl "https://ibglobalstorage.blob.core.windows.net/garmin-ci/Devices.zip$AZURE_KEYS_SAS" --output /tmp/devices.zip | |
sudo mkdir -p /root/.Garmin/ConnectIQ/ | |
sudo unzip /tmp/devices.zip -d /root/.Garmin/ConnectIQ/ | |
- name: Write Version | |
run: | | |
cat <<EOF > ./resources/settings/version.xml | |
<strings><string id="AppVersionValue">${{ steps.semver.outputs.version }}</string></strings> | |
EOF | |
- name: Write Secrets | |
env: | |
WATCHSERVER_KEY: ${{ secrets.WATCHSERVER_KEY }} | |
run: | | |
cat <<EOF > ./resources/settings/secrets.xml | |
<strings><string id="LocationApiKeyValue">not_used</string><string id="IsTest">0</string><string id="ExchangeApiKeyValue">not_used</string><string id="WatchServerTokenValue">$WATCHSERVER_KEY</string></strings> | |
EOF | |
- name: Download App Key | |
env: | |
AZURE_KEYS_SAS: ${{ secrets.AZURE_KEYS_SAS }} | |
run: | | |
curl "https://ibglobalstorage.blob.core.windows.net/garmin-ci/YAWatchFace.key$AZURE_KEYS_SAS" --output ./app.key | |
- name: Build | |
run: | | |
sudo java -cp /garminsdk/bin/monkeybrains.jar com.garmin.monkeybrains.Monkeybrains -o /release/yas-${{ steps.semver.outputs.version }}.iq -f ./monkey.jungle -y ./app.key -e -w -r -l 0 | |
# java -Xms1g -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -jar /garminsdk/bin/monkeybrains.jar -o ./monkey.jungle -y /Users/ruabdid/Essential/YAWatchFace.key -d fenix7pro_sim -w -l 0 | |