mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-15 20:03:15 +02:00
Merge pull request #3501 from Alexander-Wilms/remove-unused-git-branch-name
CI config cleanup
This commit is contained in:
31
.github/workflows/github.yml
vendored
31
.github/workflows/github.yml
vendored
@@ -28,6 +28,7 @@ jobs:
|
|||||||
- name: Get repo name
|
- name: Get repo name
|
||||||
id: get_repo_name
|
id: get_repo_name
|
||||||
run: echo "::set-output name=value::${GITHUB_REPOSITORY#*/}"
|
run: echo "::set-output name=value::${GITHUB_REPOSITORY#*/}"
|
||||||
|
|
||||||
- name: Get last successful build for ${{ github.sha }}
|
- name: Get last successful build for ${{ github.sha }}
|
||||||
uses: octokit/request-action@v2.1.9
|
uses: octokit/request-action@v2.1.9
|
||||||
id: get_last_scheduled_run
|
id: get_last_scheduled_run
|
||||||
@@ -40,6 +41,7 @@ jobs:
|
|||||||
head_sha: ${{ github.sha }}
|
head_sha: ${{ github.sha }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Check if successful build of the current commit exists
|
- name: Check if successful build of the current commit exists
|
||||||
id: check_if_built
|
id: check_if_built
|
||||||
run: |
|
run: |
|
||||||
@@ -48,6 +50,7 @@ jobs:
|
|||||||
else
|
else
|
||||||
echo '::set-output name=skip_build::0'
|
echo '::set-output name=skip_build::0'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Cancel current run
|
- name: Cancel current run
|
||||||
if: steps.check_if_built.outputs.skip_build == 1
|
if: steps.check_if_built.outputs.skip_build == 1
|
||||||
uses: octokit/request-action@v2.1.9
|
uses: octokit/request-action@v2.1.9
|
||||||
@@ -58,6 +61,7 @@ jobs:
|
|||||||
run_id: ${{ github.run_id }}
|
run_id: ${{ github.run_id }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Wait for the run to be cancelled
|
- name: Wait for the run to be cancelled
|
||||||
if: steps.check_if_built.outputs.skip_build == 1
|
if: steps.check_if_built.outputs.skip_build == 1
|
||||||
run: sleep 60
|
run: sleep 60
|
||||||
@@ -206,7 +210,7 @@ jobs:
|
|||||||
max-size: "5G"
|
max-size: "5G"
|
||||||
verbose: 2
|
verbose: 2
|
||||||
|
|
||||||
- name: Clone Heroes 3 data
|
- name: Prepare Heroes 3 data
|
||||||
env:
|
env:
|
||||||
HEROES_3_DATA_PASSWORD: ${{ secrets.HEROES_3_DATA_PASSWORD }}
|
HEROES_3_DATA_PASSWORD: ${{ secrets.HEROES_3_DATA_PASSWORD }}
|
||||||
if: ${{ env.HEROES_3_DATA_PASSWORD != '' && matrix.test == 1 }}
|
if: ${{ env.HEROES_3_DATA_PASSWORD != '' && matrix.test == 1 }}
|
||||||
@@ -236,10 +240,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GENERATE_ONLY_BUILT_CONFIG: 1
|
GENERATE_ONLY_BUILT_CONFIG: 1
|
||||||
|
|
||||||
- name: Git branch name
|
|
||||||
id: git-branch-name
|
|
||||||
uses: EthanSK/git-branch-name-action@v1
|
|
||||||
|
|
||||||
- name: Build Number
|
- name: Build Number
|
||||||
run: |
|
run: |
|
||||||
source '${{github.workspace}}/CI/get_package_name.sh'
|
source '${{github.workspace}}/CI/get_package_name.sh'
|
||||||
@@ -337,14 +337,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
DEPLOY_RSA: ${{ secrets.DEPLOY_RSA }}
|
DEPLOY_RSA: ${{ secrets.DEPLOY_RSA }}
|
||||||
PACKAGE_EXTENSION: ${{ matrix.extension }}
|
PACKAGE_EXTENSION: ${{ matrix.extension }}
|
||||||
|
|
||||||
- uses: act10ns/slack@v2
|
|
||||||
with:
|
|
||||||
status: ${{ job.status }}
|
|
||||||
channel: '#notifications'
|
|
||||||
env:
|
|
||||||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
||||||
if: always()
|
|
||||||
|
|
||||||
# copy-pasted mostly
|
# copy-pasted mostly
|
||||||
bundle_release:
|
bundle_release:
|
||||||
@@ -380,6 +372,7 @@ jobs:
|
|||||||
if: "${{ matrix.conan_profile != '' }}"
|
if: "${{ matrix.conan_profile != '' }}"
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.10'
|
||||||
|
|
||||||
- name: Conan setup
|
- name: Conan setup
|
||||||
if: "${{ matrix.conan_profile != '' }}"
|
if: "${{ matrix.conan_profile != '' }}"
|
||||||
run: |
|
run: |
|
||||||
@@ -395,10 +388,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GENERATE_ONLY_BUILT_CONFIG: 1
|
GENERATE_ONLY_BUILT_CONFIG: 1
|
||||||
|
|
||||||
- name: Git branch name
|
|
||||||
id: git-branch-name
|
|
||||||
uses: EthanSK/git-branch-name-action@v1
|
|
||||||
|
|
||||||
- name: Build Number
|
- name: Build Number
|
||||||
run: |
|
run: |
|
||||||
source '${{github.workspace}}/CI/get_package_name.sh'
|
source '${{github.workspace}}/CI/get_package_name.sh'
|
||||||
@@ -440,11 +429,3 @@ jobs:
|
|||||||
name: ${{ env.VCMI_PACKAGE_FILE_NAME }}
|
name: ${{ env.VCMI_PACKAGE_FILE_NAME }}
|
||||||
path: |
|
path: |
|
||||||
${{ env.ANDROID_APK_PATH }}
|
${{ env.ANDROID_APK_PATH }}
|
||||||
|
|
||||||
- uses: act10ns/slack@v2
|
|
||||||
with:
|
|
||||||
status: ${{ job.status }}
|
|
||||||
channel: '#notifications'
|
|
||||||
env:
|
|
||||||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
||||||
if: always()
|
|
||||||
|
@@ -815,6 +815,10 @@ elseif(APPLE_MACOS AND NOT ENABLE_MONOLITHIC_INSTALL)
|
|||||||
set(CPACK_MONOLITHIC_INSTALL 1)
|
set(CPACK_MONOLITHIC_INSTALL 1)
|
||||||
set(CPACK_GENERATOR "DragNDrop")
|
set(CPACK_GENERATOR "DragNDrop")
|
||||||
set(CPACK_DMG_BACKGROUND_IMAGE "${CMAKE_SOURCE_DIR}/osx/dmg_background.png")
|
set(CPACK_DMG_BACKGROUND_IMAGE "${CMAKE_SOURCE_DIR}/osx/dmg_background.png")
|
||||||
|
# Workaround for this issue:
|
||||||
|
# CPack Error: Error executing: /usr/bin/hdiutil detach "/Volumes/VCMI"
|
||||||
|
# https://github.com/actions/runner-images/issues/7522#issuecomment-1564467252
|
||||||
|
set(CPACK_COMMAND_HDIUTIL "/usr/bin/sudo /usr/bin/hdiutil")
|
||||||
# CMake code for CPACK_DMG_DS_STORE executed before DS_STORE_SETUP_SCRIPT
|
# CMake code for CPACK_DMG_DS_STORE executed before DS_STORE_SETUP_SCRIPT
|
||||||
# So we can keep both enabled and this shouldn't hurt
|
# So we can keep both enabled and this shouldn't hurt
|
||||||
# set(CPACK_DMG_DS_STORE "${CMAKE_SOURCE_DIR}/osx/dmg_DS_Store")
|
# set(CPACK_DMG_DS_STORE "${CMAKE_SOURCE_DIR}/osx/dmg_DS_Store")
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
[](https://github.com/vcmi/vcmi/actions/workflows/github.yml)
|
[](https://github.com/vcmi/vcmi/actions/workflows/github.yml?query=event%3Aschedule)
|
||||||
[](https://github.com/vcmi/vcmi/releases/tag/1.4.0)
|
[](https://github.com/vcmi/vcmi/releases/tag/1.4.0)
|
||||||
[](https://github.com/vcmi/vcmi/releases/tag/1.4.1)
|
[](https://github.com/vcmi/vcmi/releases/tag/1.4.1)
|
||||||
[](https://github.com/vcmi/vcmi/releases/tag/1.4.2)
|
[](https://github.com/vcmi/vcmi/releases/tag/1.4.2)
|
||||||
|
Reference in New Issue
Block a user