-
Notifications
You must be signed in to change notification settings - Fork 0
PyPI + Conda builds #2
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
base: master
Are you sure you want to change the base?
Conversation
Cibuildwheel
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| config_file: | ||
| [ | ||
| "conda_package/variants/win_64_cuda_compilercuda-nvcccuda_compiler_version12.0numpy1.22python3.10.____cpython.yaml", | ||
| "conda_package/variants/win_64_cuda_compilercuda-nvcccuda_compiler_version12.0numpy1.22python3.9.____cpython.yaml", | ||
| "conda_package/variants/win_64_cuda_compilercuda-nvcccuda_compiler_version12.0numpy1.23python3.11.____cpython.yaml", | ||
| "conda_package/variants/win_64_cuda_compilercuda-nvcccuda_compiler_version12.0numpy1.26python3.12.____cpython.yaml", | ||
| ] | ||
| runs-on: windows-2022 | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: conda-incubator/setup-miniconda@v3 | ||
| with: | ||
| miniconda-version: "latest" | ||
| activate-environment: ../deploy-env | ||
| python-version: "3.10" | ||
|
|
||
| - name: Add msbuild to PATH | ||
| uses: microsoft/setup-msbuild@v2 | ||
|
|
||
| - name: Setup CUDA Toolkit | ||
| id: cuda-toolkit | ||
| shell: pwsh | ||
| run: conda_package/scripts/setup_cuda.ps1 | ||
| env: | ||
| INPUT_CUDA_VERSION: 12.0.0 | ||
|
|
||
| - name: Build openmm package | ||
| shell: bash -l {0} | ||
| run: | | ||
| git config --global --add safe.directory '*' | ||
| conda install anaconda-client conda-build | ||
| conda clean --all -y | ||
| conda build conda_package/recipe/ --variant-config-files ${{ matrix.config_file }} --output-folder ./pkg/ --no-include-recipe --no-anaconda-upload -c conda-forge | ||
| env: | ||
| OPENMM_VERSION: ${{ github.ref_name }} | ||
| OPENMM_COMMIT: ${{ github.sha }} | ||
|
|
||
| - name: Upload to conda | ||
| shell: bash -l {0} | ||
| run: | | ||
| anaconda -t ${{ secrets.ANACONDA_TOKEN_BASIC }} upload -u acellera pkg/*/openmm-*.conda --skip-existing |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 5 months ago
To fix the issue, we will add a permissions block at the workflow level to define the minimal permissions required for the workflow. Based on the operations in the workflow, the following permissions are necessary:
contents: readfor accessing repository contents.packages: writefor uploading packages to the repository.
This change will ensure that the workflow has only the permissions it needs, reducing the risk of unintended access.
-
Copy modified lines R3-R6
| @@ -2,2 +2,6 @@ | ||
|
|
||
| permissions: | ||
| contents: read | ||
| packages: write | ||
|
|
||
| on: |
No description provided.