update cc-related CI (#387)
* merge get-cc-url into get-version * add `get-cc` * fix * fix again * fix * fix * fix macos * remove `apt update` * fix macos * rename `get-version` -> `get-info` * rm unnecessary file
This commit is contained in:
10
.github/actions/build-android/action.yml
vendored
10
.github/actions/build-android/action.yml
vendored
@@ -3,8 +3,6 @@ description: 'build Android package'
|
||||
inputs:
|
||||
type:
|
||||
required: true
|
||||
cc-url:
|
||||
required: true
|
||||
code:
|
||||
required: true
|
||||
name:
|
||||
@@ -34,9 +32,9 @@ runs:
|
||||
with:
|
||||
file-path: love-android/app/src/main/assets/game.love
|
||||
- name: Download ColdClear arm64-v8a
|
||||
uses: ./.github/actions/get-unzip
|
||||
uses: ./.github/actions/get-cc
|
||||
with:
|
||||
url: ${{ inputs.cc-url }}/android_aarch64.zip
|
||||
arch: android_aarch64
|
||||
dir: ColdClear/arm64-v8a
|
||||
- name: Process ColdClear arm64-v8a
|
||||
shell: bash
|
||||
@@ -46,9 +44,9 @@ runs:
|
||||
mkdir -p libAndroid/arm64-v8a
|
||||
mv ColdClear/arm64-v8a/libs/arm64-v8a/libCCloader.so libAndroid/arm64-v8a
|
||||
- name: Download ColdClear armeabi-v7a
|
||||
uses: ./.github/actions/get-unzip
|
||||
uses: ./.github/actions/get-cc
|
||||
with:
|
||||
url: ${{ inputs.cc-url }}/android_armv7.zip
|
||||
arch: android_armv7
|
||||
dir: ColdClear/armeabi-v7a
|
||||
- name: Process ColdClear armeabi-v7a
|
||||
shell: bash
|
||||
|
||||
6
.github/actions/build-linux/action.yml
vendored
6
.github/actions/build-linux/action.yml
vendored
@@ -1,8 +1,6 @@
|
||||
name: 'build Linux'
|
||||
description: 'build Linux package'
|
||||
inputs:
|
||||
cc-url:
|
||||
required: true
|
||||
file-path:
|
||||
required: false
|
||||
default: Techmino.AppImage
|
||||
@@ -22,9 +20,9 @@ runs:
|
||||
chmod 777 love-11.3-x86_64.AppImage
|
||||
./love-11.3-x86_64.AppImage --appimage-extract
|
||||
- name: Download ColdClear
|
||||
uses: ./.github/actions/get-unzip
|
||||
uses: ./.github/actions/get-cc
|
||||
with:
|
||||
url: ${{ inputs.cc-url }}
|
||||
arch: linux
|
||||
- name: Pack Techmino
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
10
.github/actions/build-macos/action.yml
vendored
10
.github/actions/build-macos/action.yml
vendored
@@ -1,14 +1,14 @@
|
||||
name: 'build Mac OS'
|
||||
description: 'build Mac OS package'
|
||||
inputs:
|
||||
cc-url:
|
||||
required: true
|
||||
name:
|
||||
required: true
|
||||
icon:
|
||||
required: true
|
||||
MACOS_CERTIFICATE:
|
||||
required: true
|
||||
MACOS_CERTIFICATE_ID:
|
||||
required: true
|
||||
MACOS_CERTIFICATE_PWD:
|
||||
required: true
|
||||
runs:
|
||||
@@ -20,9 +20,9 @@ runs:
|
||||
with:
|
||||
url: https://github.com/26F-Studio/Techmino/releases/download/v0.15.1/Techmino.app.zip
|
||||
- name: Download ColdClear
|
||||
uses: ./.github/actions/get-unzip
|
||||
uses: ./.github/actions/get-cc
|
||||
with:
|
||||
url: ${{ inputs.cc-url }}
|
||||
arch: macOS
|
||||
- name: Modify template
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -42,4 +42,4 @@ runs:
|
||||
security unlock-keychain -p Techminohaowan build.keychain
|
||||
security import certificate.p12 -k build.keychain -P ${{ inputs.MACOS_CERTIFICATE_PWD }} -T /usr/bin/codesign
|
||||
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k Techminohaowan build.keychain
|
||||
/usr/bin/codesign --force --deep -s 79B81FC5EA155243C973B5417B0996501F00EF55 Techmino.app -v
|
||||
/usr/bin/codesign --force --deep -s ${{ inputs.MACOS_CERTIFICATE_ID }} Techmino.app -v
|
||||
|
||||
6
.github/actions/build-windows/action.yml
vendored
6
.github/actions/build-windows/action.yml
vendored
@@ -5,7 +5,7 @@ inputs:
|
||||
required: true
|
||||
love-dir:
|
||||
required: true
|
||||
cc-url:
|
||||
arch:
|
||||
required: true
|
||||
version:
|
||||
required: true
|
||||
@@ -22,9 +22,9 @@ runs:
|
||||
shell: bash
|
||||
run: mv ${{ inputs.love-dir }} love
|
||||
- name: Download ColdClear
|
||||
uses: ./.github/actions/get-unzip
|
||||
uses: ./.github/actions/get-cc
|
||||
with:
|
||||
url: ${{ inputs.cc-url }}
|
||||
arch: ${{ inputs.arch }}
|
||||
- name: Download ResourceHacker
|
||||
uses: ./.github/actions/get-unzip
|
||||
with:
|
||||
|
||||
32
.github/actions/get-cc/action.yml
vendored
Normal file
32
.github/actions/get-cc/action.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: 'get cc'
|
||||
description: 'download cc into specific dir'
|
||||
inputs:
|
||||
tag:
|
||||
required: false
|
||||
default:
|
||||
arch:
|
||||
required: true
|
||||
dir:
|
||||
required: false
|
||||
default: '.'
|
||||
repo:
|
||||
required: false
|
||||
default: 26F-Studio/cold_clear_ai_love2d_wrapper
|
||||
temp-file:
|
||||
required: false
|
||||
default: temp.zip
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- run: |
|
||||
echo "::set-output name=tag::"$(if [ -z "${{ inputs.tag }}" ]
|
||||
then curl -w '%{url_effective}' -I -L -s -S https://github.com/${{ inputs.repo }}/releases/latest -o /dev/null | grep -o '\<[^/]*$'
|
||||
else echo ${{ inputs.tag }}
|
||||
fi)
|
||||
id: get-tag
|
||||
shell: bash
|
||||
- uses: ./.github/actions/get-unzip
|
||||
with:
|
||||
url: https://github.com/${{ inputs.repo }}/releases/download/${{ steps.get-tag.outputs.tag }}/${{ inputs.arch }}.zip
|
||||
dir: ${{ inputs.dir }}
|
||||
temp-file: ${{ inputs.temp-file }}
|
||||
7
.github/actions/get-unzip/action.yml
vendored
7
.github/actions/get-unzip/action.yml
vendored
@@ -6,10 +6,13 @@ inputs:
|
||||
dir:
|
||||
required: false
|
||||
default: '.'
|
||||
temp-file:
|
||||
required: false
|
||||
default: temp.zip
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- run: curl -L ${{ inputs.url }} -o temp.zip
|
||||
- run: curl -L ${{ inputs.url }} -o ${{ inputs.temp-file }}
|
||||
shell: bash
|
||||
- run: 7z x temp.zip -o${{ inputs.dir }}
|
||||
- run: 7z x ${{ inputs.temp-file }} -o${{ inputs.dir }}
|
||||
shell: bash
|
||||
|
||||
Reference in New Issue
Block a user