diff --git a/.github/workflows/Electron.yml b/.github/workflows/Electron.yml new file mode 100644 index 0000000..af77549 --- /dev/null +++ b/.github/workflows/Electron.yml @@ -0,0 +1,26 @@ +name: Electron Build + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: Install dependencies + run: cd Dashboard && yarn --network-timeout 1000000000 + - name: Build + run: cd Dashboard && yarn build diff --git a/.github/workflows/PlatformIO.yml b/.github/workflows/PlatformIO.yml new file mode 100644 index 0000000..ded290e --- /dev/null +++ b/.github/workflows/PlatformIO.yml @@ -0,0 +1,36 @@ +name: PlatformIO CI + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Cache pip + uses: actions/cache@v2 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + - name: Cache PlatformIO + uses: actions/cache@v2 + with: + path: ~/.platformio + key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} + - name: Set up Python + uses: actions/setup-python@v2 + - name: Install PlatformIO + run: | + python -m pip install --upgrade pip + pip install --upgrade platformio + - name: Build console + run: pio run --environment console --project-dir "./Arduino/Console" + - name: Build control + run: pio run --environment control --project-dir "./Arduino/Control" diff --git a/.github/workflows/arduinoBuild.yml b/.github/workflows/arduinoBuild.yml deleted file mode 100644 index 6bf9898..0000000 --- a/.github/workflows/arduinoBuild.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Arduino Build - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Run arduino-builder - uses: Legion2/arduino-builder-action@v2.0.0 - with: - sketch: ./Arduino/ArduinoControl.ino diff --git a/.github/workflows/dashboardBuild.yml b/.github/workflows/dashboardBuild.yml deleted file mode 100644 index a45cfdb..0000000 --- a/.github/workflows/dashboardBuild.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Dashboard Build - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: windows-latest - - strategy: - matrix: - node-version: [14.x] - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - name: Install dependencies - run: cd Dashboard && yarn --network-timeout 1000000000 - - name: Package for Windows - run: cd Dashboard && yarn pack:win - - name: Upload installer - uses: actions/upload-artifact@v2 - with: - name: LightControl-Setup - path: Dashboard/dist/LightControl-Setup.exe - - name: Upload portable files - uses: actions/upload-artifact@v2 - with: - name: LightControl-Portable - path: Dashboard/dist/win-unpacked diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml deleted file mode 100644 index 4c298c8..0000000 --- a/.github/workflows/linting.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Dashboard Lint - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - lint: - - runs-on: windows-latest - - strategy: - matrix: - node-version: [14.x] - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - name: Install dependencies - run: cd Dashboard && yarn --network-timeout 1000000000 - - name: Lint - run: cd Dashboard && yarn lint