mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 09:50:40 +08:00
chore: download files with cmake in gh workflow, clean up
This commit is contained in:
22
.github/workflows/dev-build-linux.yml
vendored
22
.github/workflows/dev-build-linux.yml
vendored
@@ -19,11 +19,10 @@ on:
|
||||
- 'include/**'
|
||||
- 'resource/**'
|
||||
- CMakeLists.txt
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
linux-latest:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
@@ -32,6 +31,7 @@ jobs:
|
||||
- name: Install GCC-12
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt upgrade
|
||||
sudo apt install gcc-12 g++-12
|
||||
|
||||
- name: Setup ccache
|
||||
@@ -39,15 +39,6 @@ jobs:
|
||||
with:
|
||||
remove_stale_cache: false
|
||||
|
||||
- name: Download libraries
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
cd ~
|
||||
gh release download --repo aa889788/build-opencv --pattern '*Linux.tar.gz'
|
||||
gh release download --repo aa889788/build-fastdeploy --pattern '*Linux.tar.gz'
|
||||
find . -maxdepth 1 -name '*.tar.gz' -exec tar -xvf '{}' \;
|
||||
|
||||
- name: Build MAA
|
||||
env:
|
||||
CC: ccache gcc-12
|
||||
@@ -55,15 +46,16 @@ jobs:
|
||||
run: |
|
||||
mkdir -p build
|
||||
cmake -B build \
|
||||
-DFASTDEPLOY_INSTALL_DIR=~/fastdeploy \
|
||||
-DOpenCV_DIR=~/opencv/lib/cmake/opencv4 \
|
||||
-DINSTALL_THIRD_LIBS=ON
|
||||
-DINSTALL_THIRD_LIBS=ON
|
||||
# -DFASTDEPLOY_DIRECTORY=~/fastdeploy \
|
||||
# -DOPENCV_DIRECTORY=~/opencv/lib/cmake/opencv4 \
|
||||
cmake --build build
|
||||
|
||||
mkdir -p install
|
||||
cmake --install build --prefix install
|
||||
|
||||
- run: |
|
||||
- name: tar files
|
||||
run: |
|
||||
mkdir -p release
|
||||
cd install
|
||||
tar czvf $GITHUB_WORKSPACE/release/MaaAssistantArknights.tar.gz .
|
||||
|
||||
Reference in New Issue
Block a user