Skip to content

Commit

Permalink
Use ' instaead of " in if statements
Browse files Browse the repository at this point in the history
  • Loading branch information
roomrys committed Sep 11, 2024
1 parent 84c6d32 commit 220ac77
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build_tensorflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,29 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-22.04", "windows-2022", "macos-14"]
os: ['ubuntu-22.04', 'windows-2022', 'macos-14']
steps:
# Checkout the repository
- name: Checkout
uses: actions/checkout@v4

- name: Make conda prefix directory (Windows)
if: matrix.os == "windows-2022"
if: matrix.os == 'windows-2022'
shell: powershell
run: |
New-Item -ItemType Directory -Force -Path C:\c
# https://github.com/conda-incubator/setup-miniconda?tab=readme-ov-file#use-a-different-environment-name-or-path
- name: Setup Miniconda (Windows)
if: matrix.os == "windows-2022"
if: matrix.os == 'windows-2022'
uses: conda-incubator/setup-miniconda@v3.0.3
with:
python-version: "3.10"
environment-file: environment.tensorflow.yml
activate-environment: C:\c\tf

- name: Setup Miniconda (not Windows)
if: matrix.os != "windows-2022"
if: matrix.os != 'windows-2022'
uses: conda-incubator/setup-miniconda@v3.0.3
with:
python-version: "3.10"
Expand All @@ -58,20 +58,20 @@ jobs:
conda list
- name: Build conda package (Windows)
if: matrix.os == "windows-2022"
if: matrix.os == 'windows-2022'
shell: powershell
run: |
conda build --debug .conda.tensorflow --output-folder C:\c\build.tensorflow -c conda-forge
- name: Build conda package (Ubuntu)
if: matrix.os == "ubuntu-22.04"
if: matrix.os == 'ubuntu-22.04'
shell: bash -l {0}
run: |
conda build --debug .conda.tensorflow --output-folder build.tensorflow -c conda-forge
# https://github.com/anaconda/anaconda-client/issues/529
- name: Upload to Anaconda (Windows)
if: matrix.os == "windows-2022"
if: matrix.os == 'windows-2022'
env:
ANACONDA_PASSWORD: ${{ secrets.ANACONDA_PASSWORD }}
shell: powershell
Expand All @@ -81,7 +81,7 @@ jobs:
anaconda logout
- name: Upload to Anaconda (Ubuntu)
if: matrix.os == "ubuntu-22.04"
if: matrix.os == 'ubuntu-22.04'
env:
ANACONDA_PASSWORD: ${{ secrets.ANACONDA_PASSWORD }}
shell: bash -l {0}
Expand All @@ -91,13 +91,13 @@ jobs:
anaconda logout
- name: Build conda package (MacOS)
if: matrix.os == "macos-14"
if: matrix.os == 'macos-14'
shell: bash -l {0}
run: |
conda build --debug .conda.tensorflow_macos --output-folder build.tensorflow_macos -c conda-forge
- name: Upload to Anaconda (MacOS)
if: matrix.os == "macos-14"
if: matrix.os == 'macos-14'
env:
ANACONDA_PASSWORD: ${{ secrets.ANACONDA_PASSWORD }}
shell: bash -l {0}
Expand Down

0 comments on commit 220ac77

Please sign in to comment.