diff --git a/.github/workflows/auto-build.yml b/.github/workflows/auto-build.yml index 3403a85..af33705 100644 --- a/.github/workflows/auto-build.yml +++ b/.github/workflows/auto-build.yml @@ -37,3 +37,13 @@ jobs: cd build cmake "../src/aseprite" -G Ninja -DCMAKE_BUILD_TYPE=MinSizeRel -DLAF_BACKEND=skia -DSKIA_DIR="../src/skia" -DSKIA_LIBRARY_DIR="../src/skia/out/Release-x64" -DSKIA_LIBRARY="../src/skia/out/Release-x64/skia.lib" ninja aseprite + + - name: Get version + id: get_version + run: | + $version = Get-Content version.txt + echo "version=$version" >> $env:GITHUB_ENV + + - name: Test version + run: | + echo "Version: ${{ steps.get_version.outputs.version }}" diff --git a/.gitignore b/.gitignore index 45a08ed..01aca6c 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,5 @@ _deps .venv/ src/ -build/ \ No newline at end of file +build/ +*.txt \ No newline at end of file diff --git a/download.py b/download.py index 167a591..e7bbc78 100644 --- a/download.py +++ b/download.py @@ -10,6 +10,10 @@ def get_latest_tag_aseprite(): response_json = response.json() return response_json['tag_name'] +def save_aseprite_tag(tag): + with open('version.txt', 'w') as f: + f.write(tag) + def clone_aseprite(tag): clone_url = f'https://github.com/{ASEPRITE_REPOSITORY}.git' git_cmd = f'git clone -b {tag} {clone_url} src/aseprite --depth 1' @@ -32,11 +36,10 @@ def download_skia_for_windows(tag): os.system(f'7z x src/{SKIA_RELEASE_FILE_NAME} -osrc/skia') - pass - if __name__ == '__main__': aseprite_tag = get_latest_tag_aseprite() - clone_aseprite(aseprite_tag) + #clone_aseprite(aseprite_tag) + save_aseprite_tag(aseprite_tag) skia_tag = get_latest_tag_skia() - download_skia_for_windows(skia_tag) \ No newline at end of file + #download_skia_for_windows(skia_tag) \ No newline at end of file