Skip to content

Commit

Permalink
adding action for win build
Browse files Browse the repository at this point in the history
  • Loading branch information
nitin710 committed Nov 9, 2024
1 parent 6c31e9c commit 56005df
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/build-all-on-win.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Build all on Windows
on: [push]
jobs:
clone-to-OF_ROOT:
runs-on: [self-hosted, Windows]
environment: RUNNER-WINDOWS
steps:
- name: remove existing clone
shell: bash
working-directory: ${{ vars.ADDONS_DIR }}
run: |
pwd
#echo "the commit that dispatched this job-- ${GITHUB_SHA}"
if [ -d ofxEmotiBit ]; then
echo "Directory exists."
rm -rf ofxEmotiBit
echo "clone removed"
else
echo "Directory does not already exist"
fi
- name: checkout repository
uses: actions/checkout@v4
- name: move fresh clone to OF_ROOT
run: cp -r ../$(echo ${{ github.repository }} | cut -d '/' -f 2) ${{ vars.ADDONS_DIR }}
build-oscilloscope:
needs: clone-to-OF_ROOT
runs-on: [self-hosted, Windows]
environment: RUNNER-WINDOWS
steps:
- name: build using make
shell: cmd
working-directory: ${{ vars.OFXEMOTIBIT_DIR }}
run: |
echo "current working directory" && pwd
cd EmotiBitOscilloscope
MSBuild EmotiBitOscilloscope.sln -t:Build -p:Configuration=Release
build-dataparser:
needs: clone-to-OF_ROOT
runs-on: [self-hosted, Windows]
environment: RUNNER-WINDOWS
steps:
- name: build using make
shell: cmd
working-directory: ${{ vars.OFXEMOTIBIT_DIR }}
run: |
echo "current working directory" && pwd
cd EmotiBitDataParser
MSBuild EmotiBitDataParser.sln -t:Build -p:Configuration=Release
build-firmwareinstaller:
needs: clone-to-OF_ROOT
runs-on: [self-hosted, Windows]
environment: RUNNER-WINDOWS
steps:
- name: build using make
shell: cmd
working-directory: ${{ vars.OFXEMOTIBIT_DIR }}
run: |
echo "current working directory" && pwd
cd EmotiBitFirmwareInstaller
MSBuild EmotiBitFirmwareInstaller.sln -t:Build -p:Configuration=Release

0 comments on commit 56005df

Please sign in to comment.