Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update GH Actions #197

Merged
merged 1 commit into from
Feb 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 18 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:


steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Env Script (Windows)
uses: ilammy/msvc-dev-cmd@v1
Expand All @@ -86,7 +86,7 @@ jobs:
arch: ${{ matrix.win_arch }}

- name: Install Qt
uses: jurplel/install-qt-action@v3
uses: jurplel/install-qt-action@v3.3.0
with:
dir: ${{ env.qt_installation_path }}
arch: ${{ matrix.qt_arch }}
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
- name: Cache Zlib
id: cache-zlib
if: runner.os == 'Windows'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.zlib_installation_path }}
key: ${{ runner.os }}${{ matrix.win_arch }}-zlib
Expand Down Expand Up @@ -173,8 +173,9 @@ jobs:
run: mv ../build-makoureactor/*.${{ matrix.package_extension }} makoureactor-continuous-${{ matrix.interface }}-${{ matrix.package_suffix }}.${{ matrix.package_extension }}

- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifact-${{ matrix.package_suffix }}-${{ matrix.interface }}
path: ${{ github.workspace }}/makoureactor-continuous-*.*

deb_builder:
Expand All @@ -189,7 +190,7 @@ jobs:
, debArch: amd64
}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch --tags --force
Expand All @@ -206,53 +207,53 @@ jobs:
cmake --build build
cpack -G DEB -C Release --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: makoureactor*.deb

pre_release_assets:
name: Pre-Release
needs: [main_Build, deb_builder]
needs: [main_build, deb_builder]
if: (github.event.ref_type != 'tag') && (github.ref == 'refs/heads/master')
concurrency: pre-release-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Download Files
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4

- name: Deploy Package
uses: "marvinpinto/action-automatic-releases@latest"
uses: crowbarmaster/GH-Automatic-Releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "continuous"
prerelease: true
title: "Unstable Build"
files: |
artifact/*
debian-artifacts/*
artifact-*/*
debian-artifacts-*/*

release_assets:
name: Release
needs: [main_Build, deb_builder]
needs: [main_build, deb_builder]
if: github.event.ref_type == 'tag'
concurrency: release-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Download Files
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4

- name: Prepare Upload
shell: bash
run: find . -type f -name 'makoureactor-continuous-*' -exec bash -c 'mv "{}" $(echo {} | sed 's/continuous-//')' ';'

- name: Deploy Package
uses: "marvinpinto/action-automatic-releases@latest"
uses: crowbarmaster/GH-Automatic-Releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
title: ${{ github.event.ref }}
files: |
artifact/*
debian-artifacts/*
artifact-*/*
debian-artifacts-*/*

Loading