Skip to content

Commit 6e776f7

Browse files
authored
Merge pull request #111 from regro-cf-autotick-bot/2.20.1_h013b3c
cppcheck v2.20.1
2 parents 5b9925a + 03e15c4 commit 6e776f7

6 files changed

Lines changed: 177 additions & 64 deletions

File tree

.azure-pipelines/azure-pipelines-linux.yml

Lines changed: 0 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/conda-build.yml

Lines changed: 147 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,155 @@
1-
# This file was added automatically by admin-migrations. Do not modify.
2-
# It ensures that Github Actions can run once rerendered for the first time.
1+
# This file was generated automatically from conda-smithy. To update this configuration,
2+
# update the conda-forge.yml and/or the recipe/meta.yaml.
33
# -*- mode: yaml -*-
44

55
name: Build conda package
66
on:
7-
workflow_dispatch:
7+
push:
8+
9+
pull_request:
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
13+
cancel-in-progress: true
814

915
jobs:
1016
build:
11-
name: Disabled build
12-
runs-on: ubuntu-slim
13-
if: false
17+
name: ${{ matrix.CONFIG }}
18+
runs-on: ${{ matrix.runs_on }}
19+
timeout-minutes: 360
20+
strategy:
21+
fail-fast: false
22+
max-parallel: 50
23+
matrix:
24+
include:
25+
- CONFIG: linux_64_python3.10.____cpython
26+
UPLOAD_PACKAGES: True
27+
os: ubuntu
28+
runs_on: ['ubuntu-latest']
29+
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9
30+
- CONFIG: linux_64_python3.11.____cpython
31+
UPLOAD_PACKAGES: True
32+
os: ubuntu
33+
runs_on: ['ubuntu-latest']
34+
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9
35+
- CONFIG: linux_64_python3.12.____cpython
36+
UPLOAD_PACKAGES: True
37+
os: ubuntu
38+
runs_on: ['ubuntu-latest']
39+
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9
40+
- CONFIG: linux_64_python3.13.____cp313
41+
UPLOAD_PACKAGES: True
42+
os: ubuntu
43+
runs_on: ['ubuntu-latest']
44+
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9
45+
- CONFIG: linux_64_python3.14.____cp314
46+
UPLOAD_PACKAGES: True
47+
os: ubuntu
48+
runs_on: ['ubuntu-latest']
49+
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9
50+
- CONFIG: linux_aarch64_python3.10.____cpython
51+
UPLOAD_PACKAGES: True
52+
os: ubuntu
53+
runs_on: ['ubuntu-latest']
54+
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9
55+
- CONFIG: linux_aarch64_python3.11.____cpython
56+
UPLOAD_PACKAGES: True
57+
os: ubuntu
58+
runs_on: ['ubuntu-latest']
59+
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9
60+
- CONFIG: linux_aarch64_python3.12.____cpython
61+
UPLOAD_PACKAGES: True
62+
os: ubuntu
63+
runs_on: ['ubuntu-latest']
64+
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9
65+
- CONFIG: linux_aarch64_python3.13.____cp313
66+
UPLOAD_PACKAGES: True
67+
os: ubuntu
68+
runs_on: ['ubuntu-latest']
69+
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9
70+
- CONFIG: linux_aarch64_python3.14.____cp314
71+
UPLOAD_PACKAGES: True
72+
os: ubuntu
73+
runs_on: ['ubuntu-latest']
74+
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-x86_64:alma9
1475
steps:
15-
- run: exit 0
76+
77+
- name: Checkout code
78+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
79+
80+
- name: Build on Linux
81+
id: build-linux
82+
if: matrix.os == 'ubuntu'
83+
env:
84+
CONFIG: ${{ matrix.CONFIG }}
85+
UPLOAD_PACKAGES: ${{ matrix.UPLOAD_PACKAGES }}
86+
DOCKER_IMAGE: ${{ matrix.DOCKER_IMAGE }}
87+
CI: github_actions
88+
CONDA_FORGE_DOCKER_RUN_ARGS: "${{ matrix.CONDA_FORGE_DOCKER_RUN_ARGS }}"
89+
BINSTAR_TOKEN: ${{ secrets.BINSTAR_TOKEN }}
90+
FEEDSTOCK_TOKEN: ${{ secrets.FEEDSTOCK_TOKEN }}
91+
STAGING_BINSTAR_TOKEN: ${{ secrets.STAGING_BINSTAR_TOKEN }}
92+
shell: bash
93+
run: |
94+
if [[ "$(uname -m)" == "x86_64" ]]; then
95+
echo "::group::Configure binfmt_misc"
96+
docker run --rm --privileged multiarch/qemu-user-static:register --reset --credential yes
97+
fi
98+
export flow_run_id="github_$GITHUB_RUN_ID"
99+
export remote_url="https://github.com/$GITHUB_REPOSITORY"
100+
export sha="$GITHUB_SHA"
101+
export FEEDSTOCK_NAME="$(basename $GITHUB_REPOSITORY)"
102+
export GIT_BRANCH="$(basename $GITHUB_REF)"
103+
if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then
104+
export IS_PR_BUILD="True"
105+
else
106+
export IS_PR_BUILD="False"
107+
fi
108+
echo "::endgroup::"
109+
./.scripts/run_docker_build.sh
110+
111+
- name: Build on macOS
112+
id: build-macos
113+
if: matrix.os == 'macos'
114+
env:
115+
CONFIG: ${{ matrix.CONFIG }}
116+
UPLOAD_PACKAGES: ${{ matrix.UPLOAD_PACKAGES }}
117+
CI: github_actions
118+
BINSTAR_TOKEN: ${{ secrets.BINSTAR_TOKEN }}
119+
FEEDSTOCK_TOKEN: ${{ secrets.FEEDSTOCK_TOKEN }}
120+
STAGING_BINSTAR_TOKEN: ${{ secrets.STAGING_BINSTAR_TOKEN }}
121+
shell: bash
122+
run: |
123+
export flow_run_id="github_$GITHUB_RUN_ID"
124+
export remote_url="https://github.com/$GITHUB_REPOSITORY"
125+
export sha="$GITHUB_SHA"
126+
export FEEDSTOCK_NAME="$(basename $GITHUB_REPOSITORY)"
127+
export GIT_BRANCH="$(basename $GITHUB_REF)"
128+
if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then
129+
export IS_PR_BUILD="True"
130+
else
131+
export IS_PR_BUILD="False"
132+
fi
133+
./.scripts/run_osx_build.sh
134+
135+
- name: Build on windows
136+
id: build-windows
137+
if: matrix.os == 'windows'
138+
shell: cmd
139+
run: |
140+
set "flow_run_id=github_%GITHUB_RUN_ID%"
141+
set "remote_url=https://github.com/%GITHUB_REPOSITORY%"
142+
set "sha=%GITHUB_SHA%"
143+
call ".scripts\run_win_build.bat"
144+
env:
145+
# default value; make it explicit, as it needs to match with artefact
146+
# generation below. Not configurable for now, can be revisited later
147+
CONDA_BLD_DIR: C:\bld
148+
MINIFORGE_HOME: ${{ contains(runner.arch, 'ARM') && 'C' || 'D' }}:\Miniforge
149+
PYTHONUNBUFFERED: 1
150+
CONFIG: ${{ matrix.CONFIG }}
151+
CI: github_actions
152+
UPLOAD_PACKAGES: ${{ matrix.UPLOAD_PACKAGES }}
153+
BINSTAR_TOKEN: ${{ secrets.BINSTAR_TOKEN }}
154+
FEEDSTOCK_TOKEN: ${{ secrets.FEEDSTOCK_TOKEN }}
155+
STAGING_BINSTAR_TOKEN: ${{ secrets.STAGING_BINSTAR_TOKEN }}

.scripts/build_steps.sh

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.scripts/run_docker_build.sh

Lines changed: 27 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build-locally.py

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

recipe/recipe.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
context:
22
name: cppcheck
3-
version: "2.20.0"
3+
version: "2.20.1"
44

55
package:
66
name: ${{ name|lower }}
77
version: ${{ version }}
88

99
source:
1010
url: https://github.com/danmar/cppcheck/archive/${{ version }}.tar.gz
11-
sha256: 7be7992439339017edb551d8e7d2315f9bb57c402da50c2cee9cd0e2724600a1
11+
sha256: 97634b598b8adf23e6cbd75aec5a8ac2d8b5f49f53e6a145b1c8380525c48a91
1212

1313
build:
1414
number: 0
@@ -38,8 +38,6 @@ requirements:
3838
tests:
3939
- script:
4040
- cppcheck --version
41-
- if: unix
42-
then: "test \"$(cppcheck --version)\" == \"Cppcheck $PKG_VERSION\""
4341
- "echo ';' > test.h; cppcheck --check-config test.h"
4442

4543

0 commit comments

Comments
 (0)