Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/2.3' into temposecondsfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ywwg committed Sep 26, 2022
2 parents 0a33a87 + 2994e27 commit 9622a65
Show file tree
Hide file tree
Showing 321 changed files with 42,402 additions and 61,708 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
name: ${{ matrix.name }}
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install build dependencies
run: |
sudo apt-get update && sudo apt-get install -y --no-install-recommends \
Expand Down
36 changes: 15 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ jobs:
artifacts_path: build/*.deb
artifacts_slug: ubuntu-focal
qt_qpa_platform: offscreen
- name: macOS 10.15
os: macos-10.15
- name: macOS 11
os: macos-11
cmake_args: >-
-DBULK=ON
-DCOREAUDIO=ON
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
qt_qpa_platform: windows

env:
SCCACHE_COMMIT: 3f318a8675e4c3de4f5e8ab2d086189f2ae5f5cf
SCCACHE_VERSION: "0.3.0"
# macOS codesigning
APPLE_CODESIGN_IDENTITY: 2C2B5D3EDCE82BA55E22E9A67F16F8D03E390870
MACOS_CODESIGN_OPENSSL_PASSWORD: ${{ secrets.MACOS_CODESIGN_OPENSSL_PASSWORD }}
Expand All @@ -118,27 +118,23 @@ jobs:
artifact-windows-win64: ${{ steps.prepare_deploy.outputs.artifact-windows-win64 }}
steps:

# sccache's handling of the /fp:fast MSVC compiler option is broken, so use our fork with the fix.
# https://github.com/mozilla/sccache/issues/950
- name: "[Windows] Set up cargo cache"
- name: "[Windows] Set up Cargo cache"
if: runner.os == 'Windows'
uses: actions/cache@v2
uses: actions/cache@v3
id: sccache-build-cache
with:
path: C:\Users\runneradmin\.cargo
# hash of commit to build
key: sccache-${{ env.SCCACHE_COMMIT }}
key: sccache-${{ env.SCCACHE_VERSION }}

# This needs to be done first because something later messes with $PATH in a way that breaks cargo
# by causing it to find link.exe from Git for Windows instead of MSVC.
- name: "[Windows] Build fixed sccache"
- name: "[Windows] Build and install sccache"
shell: bash
if: runner.os == 'Windows' && steps.sccache-build-cache.outputs.cache-hit != 'true'
# TODO: change this to simply `cargo install sccache` after 0.2.16 has been released
run: cargo install --git https://github.com/mozilla/sccache.git --rev "${SCCACHE_COMMIT}"
run: cargo install --version "${{ env.SCCACHE_VERSION }}" sccache

- name: "Check out repository"
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
# This is necessary for making `git describe` work.
fetch-depth: 0
Expand All @@ -150,14 +146,14 @@ jobs:
run: git fetch origin --force --tags

- name: "[macOS/Ubuntu 18.04] Set up cmake"
uses: jwlawson/actions-setup-cmake@v1.4
uses: jwlawson/actions-setup-cmake@v1.12
# Ubuntu 20.04 should use the CMake version from the repos, and Visual
# Studio on Windows comes with its own CMake version anyway.
if: runner.os == 'macOS' || matrix.os == 'ubuntu-18.04'
with:
# This should always match the mininum required version in
# our CMakeLists.txt
cmake-version: '3.16.x'
cmake-version: '3.19.x'

- name: "[Windows] Set up MSVC Developer Command Prompt"
if: runner.os == 'Windows'
Expand All @@ -170,7 +166,7 @@ jobs:

- name: "[macOS/Windows] Set up build environment cache"
if: runner.os != 'Linux'
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ matrix.buildenv_basepath }}
key: ${{ runner.os }}-buildenv-${{ env.BUILDENV_NAME }}
Expand Down Expand Up @@ -223,7 +219,7 @@ jobs:
if: runner.os != 'windows'

- name: "Set up compiler cache"
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ matrix.compiler_cache_path }}
key: ${{ matrix.os }}-${{ matrix.compiler_cache }}-${{ github.head_ref }}-${{ github.run_number }}
Expand Down Expand Up @@ -311,9 +307,7 @@ jobs:
# No need to do the PPA build for both Ubuntu versions
if: matrix.os == 'ubuntu-20.04'
run: |
if [[ "${{ github.ref }}" == "refs/heads/2.3" ]] && [[ "${{ github.repository }}" == "mixxxdj/mixxx" ]]; then
CPACK_ARGS="-D DEB_UPLOAD_PPA=ppa:mixxx/mixxxbetas"
elif [[ "${{ github.ref }}" =~ ^refs/tags/[0-9]+\.[0-9]+\.[0-9]+$ ]] && [[ "${{ github.repository }}" == "mixxxdj/mixxx" ]]; then
if [[ "${{ github.ref }}" =~ ^refs/tags/[0-9]+\.[0-9]+\.[0-9]+$ ]] && [[ "${{ github.repository }}" == "mixxxdj/mixxx" ]]; then
CPACK_ARGS="-D DEB_UPLOAD_PPA=ppa:mixxx/mixxx"
else
# only build the source DEB, do not upload
Expand Down Expand Up @@ -433,7 +427,7 @@ jobs:
needs: build
steps:
- name: "Check out repository"
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

Expand Down
99 changes: 54 additions & 45 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,55 +10,64 @@ jobs:
pre-commit:
name: Detecting code style issues
runs-on: ubuntu-latest
# The Dockerfile for this container can be found at:
# https://github.com/Holzhaus/mixxx-ci-docker
container: holzhaus/mixxx-ci:20220805
steps:
- name: "Check out repository"
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: "Check out repository"
uses: actions/checkout@v3
with:
# Unfortunately we need the whole history and can't use a shallow clone
# because the Appstream Metadata hook parses the history to find the
# latest changelog modification date. Otherwise, `fetch-depth: 2` would
# suffice.
fetch-depth: 0

- name: "Set up Python"
uses: actions/setup-python@v2
- name: "Add GitHub workspace as a safe directory"
# Without this, git commands will fail due to mismatching permissions in
# the container. See actions/runner#2033 for details.
#
# The actions/checkout action should already take care of this thanks to
# commit actions/checkout@55fd82fc42c0cdd6f1f480dd23f60636a42f6f5c, but
# it seems like that's not working properly.
run: |
git config --global --add safe.directory "${GITHUB_WORKSPACE}"
git config --global --list
- name: Install clang-format
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends clang-format-10
- name: "Detect code style issues (push)"
uses: pre-commit/[email protected]
if: github.event_name == 'push'
# There are too many files in the repo that have formatting issues. We'll
# disable these checks for now when pushing directly (but still run these
# on Pull Requests!).
env:
SKIP: end-of-file-fixer,trailing-whitespace,clang-format,eslint,no-commit-to-branch,prettier

- name: "Detect code style issues (push)"
uses: pre-commit/[email protected]
if: github.event_name == 'push'
# There are too many files in the repo that have formatting issues. We'll
# disable these checks for now when pushing directly (but still run these
# on Pull Requests!).
env:
SKIP: end-of-file-fixer,trailing-whitespace,clang-format,eslint,no-commit-to-branch
- name: "Detect code style issues (pull_request)"
uses: pre-commit/[email protected]
if: github.event_name == 'pull_request'
env:
SKIP: no-commit-to-branch
with:
# HEAD is the not yet integrated PR merge commit +refs/pull/xxxx/merge
# HEAD^1 is the PR target branch and HEAD^2 is the HEAD of the source branch
extra_args: --from-ref HEAD^1 --to-ref HEAD

- name: "Detect code style issues (pull_request)"
uses: pre-commit/[email protected]
if: github.event_name == 'pull_request'
env:
SKIP: no-commit-to-branch
with:
# HEAD is the not yet integrated PR merge commit +refs/pull/xxxx/merge
# HEAD^1 is the PR target branch and HEAD^2 is the HEAD of the source branch
extra_args: --from-ref HEAD^1 --to-ref HEAD
- name: "Generate patch file"
if: failure()
run: |
git diff-index -p HEAD > "${PATCH_FILE}"
[ -s "${PATCH_FILE}" ] && echo "UPLOAD_PATCH_FILE=${PATCH_FILE}" >> "${GITHUB_ENV}"
env:
PATCH_FILE: pre-commit.patch

- name: "Generate patch file"
if: failure()
run: |
git diff-index -p HEAD > "${PATCH_FILE}"
[ -s "${PATCH_FILE}" ] && echo "UPLOAD_PATCH_FILE=${PATCH_FILE}" >> "${GITHUB_ENV}"
env:
PATCH_FILE: pre-commit.patch
- name: "Upload patch artifact"
if: failure() && env.UPLOAD_PATCH_FILE != null
uses: actions/upload-artifact@v3
with:
name: ${{ env.UPLOAD_PATCH_FILE }}
path: ${{ env.UPLOAD_PATCH_FILE }}

- name: "Upload patch artifact"
if: failure() && env.UPLOAD_PATCH_FILE != null
uses: actions/upload-artifact@v2
with:
name: ${{ env.UPLOAD_PATCH_FILE }}
path: ${{ env.UPLOAD_PATCH_FILE }}

- name: "Install appstreamcli"
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends appstream

# AppStream metadata has been generated/updated by a pre-commit hook
- name: "Validate AppStream metadata"
run: appstreamcli validate res/linux/org.mixxx.Mixxx.metainfo.xml
# AppStream metadata has been generated/updated by a pre-commit hook
- name: "Validate AppStream metadata"
run: appstreamcli validate res/linux/org.mixxx.Mixxx.metainfo.xml
1 change: 1 addition & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ jobs:
stale-pr-label: "stale"
days-before-stale: 90
days-before-close: -1
exempt-pr-labels: "needs review"
Loading

0 comments on commit 9622a65

Please sign in to comment.