Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ueshita committed Aug 11, 2024
1 parent c78c752 commit 69e68b5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,16 @@ on:
jobs:
setup-sdk:
name: Setup SDK
runs-on: [ubuntu-latest, windows-latest]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Check sdk package cache
id: check-cache-sdk
uses: actions/cache/restore@v4
env:
cache-name: adxle-sdk
with:
path: ./cri
key: ${{ env.cache-name }}-${{ hashFiles('./get_adxle_sdk.py') }}
key: adxle-sdk-${{ hashFiles('./get_adxle_sdk.py') }}

- name: Install ADXLE SDK
if: ${{ steps.check-cache-sdk.outputs.cache-hit != 'true' }}
Expand All @@ -31,11 +29,9 @@ jobs:
- name: Save sdk package cache
if: ${{ steps.check-cache-sdk.outputs.cache-hit != 'true' }}
uses: actions/cache/save@v4
env:
cache-name: adxle-sdk
with:
path: ./cri
key: ${{ env.cache-name }}-${{ hashFiles('./get_adxle_sdk.py') }}
key: adxle-sdk-${{ hashFiles('./get_adxle_sdk.py') }}


# android:
Expand Down Expand Up @@ -67,11 +63,9 @@ jobs:
- name: Restore sdk package cache
id: restore-sdk-restore
uses: actions/cache/restore@v4
env:
cache-name: adxle-sdk
with:
path: ./cri
key: ${{ env.cache-name }}-${{ hashFiles('./get_adxle_sdk.py') }}
key: adxle-sdk-${{ hashFiles('./get_adxle_sdk.py') }}
fail-on-cache-miss: true
- name: Build binaries
run: |
Expand Down Expand Up @@ -112,11 +106,9 @@ jobs:
- name: Restore sdk package cache
id: restore-sdk-restore
uses: actions/cache/restore@v4
env:
cache-name: adxle-sdk
with:
path: ./cri
key: ${{ env.cache-name }}-${{ hashFiles('./get_adxle_sdk.py') }}
key: adxle-sdk-${{ hashFiles('./get_adxle_sdk.py') }}
fail-on-cache-miss: true
- name: Build binaries
run: |
Expand Down
3 changes: 2 additions & 1 deletion get_adxle_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@


def main():
sdk_package_url = "https://game.criware.jp/download/9039/?tmstv=1720058898"
with open("./sdk_url.txt") as f:
sdk_package_url = f.read()
print(f"SDK package URL: {sdk_package_url}")

local_package_name = "sdk.zip"
Expand Down
1 change: 1 addition & 0 deletions sdk_url.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://game.criware.jp/download/9039/?tmstv=1720058898

0 comments on commit 69e68b5

Please sign in to comment.