Skip to content

Commit

Permalink
Enabling lfs and adding in the build dev command
Browse files Browse the repository at this point in the history
  • Loading branch information
davisadam10 committed May 1, 2024
1 parent 4af7b09 commit 79f4659
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,34 @@ jobs:
runs-on: windows-latest

steps:
# Step 1: Check out the code from the repository
# Restore the .git directory from the cache
- name: Cache repository
uses: actions/cache@v3
with:
path: .git
key: ${{ runner.os }}-git-${{ hashFiles('.git/HEAD') }}
restore-keys:
- ${{ runner.os }}-git-

# Check out the repository with LFS support
- name: Check out repository
uses: actions/checkout@v3
with:
lfs: true # Enable Git LFS support

# Step 2: Set up Python environment
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'

# # Step 3: Install necessary C++ dependencies only if a flag file doesn't exist
# - name: Check for C++ dependencies
# run: |
# if not exist cxx_installed.txt (
# echo Installing C++ dependencies...
# choco install <package_name> # Replace with specific commands for C++ packages
# echo "C++ dependencies installed" > cxx_installed.txt
# )
# Step 3: Install necessary C++ dependencies only if a flag file doesn't exist
- name: Check for C++ dependencies
run: |
if not exist cxx_installed.txt (
echo Installing C++ dependencies...
./build_dev.bat
)
# Step 4: Install Python dependencies
- name: Install Python dependencies
Expand Down

0 comments on commit 79f4659

Please sign in to comment.