Skip to content

Commit

Permalink
update Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sithlord48 committed Jan 26, 2024
1 parent fbce4c3 commit e9c827a
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ on:
pull_request:
branches: [ master ]
env:
QtVersion: 6.6.0
QtKey: "6.6.0"
QtVersion: 6.6.1
QtKey: "6.6.1"
PackageGLOB: "Black_Chocobo-*.*"
BuildType: Release
cmakeConfigure: "cmake -S. -Bbuild -DQT_DEFAULT_MAJOR_VERSION=6 -DCMAKE_BUILD_TYPE=Release"
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
, debArch: amd64
}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch --tags --force
Expand All @@ -60,9 +60,9 @@ jobs:
cmake --build build
cpack -G DEB -C ${{env.BuildType}} --config build/CPackConfig.cmake
- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: debian-artifacts
name: debian-artifacts-${{ matrix.config.name }}
path: blackchocobo*.deb
main_build:
name: ${{ matrix.config.name }}
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
run: |
echo "BCVersion=${{ needs.precheck.outputs.version }}" >> $GITHUB_ENV
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch --tags --force
Expand All @@ -118,7 +118,7 @@ jobs:
arch: ${{matrix.config.WIN_ARCH}}

- name: Install Qt
uses: jurplel/install-qt-action@v3
uses: jurplel/install-qt-action@v3.3.0
with:
dir: ${{matrix.config.QT_INST_DIR}}
version: ${{ env.QtVersion }}
Expand All @@ -130,7 +130,7 @@ jobs:

- name: Cache ff7tk
id: cache-ff7tk
uses: actions/cache@v3.0.11
uses: actions/cache@v4
with:
path: ${{ matrix.config.ff7tkPrefix }}
key: ${{ runner.os }}${{ matrix.config.WIN_ARCH }}-Qt${{env.QtVersion}}-ff7tk-${{ hashFiles( 'ff7tk*') }}
Expand Down Expand Up @@ -172,8 +172,9 @@ jobs:
--plugin=qt
- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifact-${{matrix.config.name}}
path: |
${{github.workspace}}/${{env.PackageGLOB}}
${{github.workspace}}/blackchocobo[-_]*.*
Expand All @@ -197,11 +198,11 @@ jobs:
, debArch: armhf
}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch --tags --force
- uses: uraimo/run-on-arch-action@v2.3.0
- uses: uraimo/run-on-arch-action@v2.6.0
name: Build artifact
with:
arch: ${{ matrix.config.arch }}
Expand All @@ -222,20 +223,20 @@ jobs:
cmake --build build --config ${{env.BuildType}} --target package
cpack -G DEB -C ${{env.BuildType}} --config build/CPackConfig.cmake
- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: container-artifact
name: container-artifact-${{matrix.config.name}}-${{matrix.config.arch}}
path: |
build/Black_Chocobo[-_]*.*
build/blackchocobo[-_]*.*
blackchocobo*.deb
release_assets:
name: Release
needs: [main_Build, container_build, deb_builder]
needs: [main_build, container_build, deb_builder]
runs-on: ubuntu-latest
steps:
- name: Download Files
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
- name: Deploy Continuous
if: github.ref == 'refs/heads/master'
uses: marvinpinto/action-automatic-releases@6273874b61ebc8c71f1a61b2d98e234cf389b303
Expand All @@ -245,16 +246,16 @@ jobs:
prerelease: false
title: "Continuous Build"
files: |
artifact/*
container-artifact/*
debian-artifacts/*
artifact-*/*
container-artifact-*/*
debian-artifacts-*/*
- name: Deploy Release
if: contains(github.ref, 'tags/v')
uses: marvinpinto/action-automatic-releases@6273874b61ebc8c71f1a61b2d98e234cf389b303
with:
repo_token: "${{ secrets.DEPLOYTOKEN }}"
prerelease: false
files: |
artifact/*
container-artifact/*
debian-artifacts/*
artifact-*/*
container-artifact-*/*
debian-artifacts-*/*

0 comments on commit e9c827a

Please sign in to comment.