Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Move build to GitHub actions #1193

Merged
merged 51 commits into from
Feb 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
e504be8
github action tests
adiazulay Feb 1, 2021
b140078
fix indent
adiazulay Feb 1, 2021
71d9253
fix xvfb action
adiazulay Feb 1, 2021
3f29ff1
trigger
adiazulay Feb 1, 2021
4fe337b
change to @default-branch
adiazulay Feb 1, 2021
8ac22ab
update branch names
adiazulay Feb 1, 2021
28c0d92
update linux ver
adiazulay Feb 1, 2021
b7c3eeb
fix formatting
adiazulay Feb 1, 2021
7cd76b6
remove tags and develop triggers
adiazulay Feb 1, 2021
2e4c5a7
move runs-on
adiazulay Feb 1, 2021
449b020
add os target echo
adiazulay Feb 1, 2021
46f4937
change to build on any push
adiazulay Feb 1, 2021
995167b
remove echo
adiazulay Feb 1, 2021
851965c
fix linux if
adiazulay Feb 1, 2021
75b1044
fix os ifs
adiazulay Feb 1, 2021
53cc8a9
add ' to ifs
adiazulay Feb 1, 2021
bfcc536
fix brew install
adiazulay Feb 1, 2021
d93a138
remove tests for win
adiazulay Feb 1, 2021
ddc0114
name steps, add typescript install
adiazulay Feb 1, 2021
143087f
fix syntax
adiazulay Feb 1, 2021
bab6d31
fix formatting
adiazulay Feb 1, 2021
463507d
fix tests
adiazulay Feb 1, 2021
5948525
add missing '
adiazulay Feb 1, 2021
161278e
change to trusty
adiazulay Feb 1, 2021
6d7838c
change to ubuntu-14.04.6
adiazulay Feb 1, 2021
2dc84f5
revert to 5948525
adiazulay Feb 1, 2021
dc08655
remove gulp install
adiazulay Feb 1, 2021
e3d1537
remove typescript install
adiazulay Feb 1, 2021
7e807b9
add gulp install back
adiazulay Feb 1, 2021
ae314d0
add triggers
adiazulay Feb 1, 2021
dd402a5
add actions branch trigger
adiazulay Feb 1, 2021
65d99c2
add package
adiazulay Feb 1, 2021
cafe8ad
fix indents
adiazulay Feb 1, 2021
75157f6
add artifact publishing
adiazulay Feb 1, 2021
963f0d6
test package
adiazulay Feb 3, 2021
275265d
fix matrix
adiazulay Feb 3, 2021
c20ff04
typo
adiazulay Feb 3, 2021
13c41b3
fix version
adiazulay Feb 3, 2021
5a062c9
fix version
adiazulay Feb 3, 2021
03ebfef
fix export path
adiazulay Feb 3, 2021
db25566
test package dir, change to ubuntu
adiazulay Feb 3, 2021
ef57ce6
test ubuntu
adiazulay Feb 3, 2021
89a70d3
fix tag ref, change to main branch
adiazulay Feb 3, 2021
599b853
test file path
adiazulay Feb 3, 2021
9c6034d
test release upload
adiazulay Feb 3, 2021
5e65d72
add environment
adiazulay Feb 3, 2021
85f3dae
remove arduino install for deploy, add publish
adiazulay Feb 3, 2021
7514a08
fix conditional for publishing
adiazulay Feb 3, 2021
d7cae75
update enviroment
adiazulay Feb 3, 2021
44f4b8d
remove travis.yml
adiazulay Feb 3, 2021
88c784a
fix tag for stale issue workflow
adiazulay Feb 4, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 108 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
name: CI-Tests
on:
push:
branches:
- master
- develop
tags:
- v*
pull_request:
branches:
- master
- develop


jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]

steps:
- name: checkout
uses: actions/checkout@v2
- name: get node
uses: actions/setup-node@v1
with:
node-version: 11.x
- name: linux setup
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0
sleep 3
wget https://downloads.arduino.cc/arduino-1.8.2-linux64.tar.xz -P /home/$USER
tar -xvf /home/$USER/arduino-1.8.2-linux64.tar.xz -C /home/$USER/
sudo ln -s /home/$USER/arduino-1.8.2/arduino /usr/bin/arduino
sudo apt-get update
sudo apt-get install g++-multilib
sudo apt-get install -y build-essential
sudo apt-get install libudev-dev
- name: macos setup
if: ${{ matrix.os == 'macos-latest' }}
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install arduino --cask
- name: preinstall
run: |
npm install -g node-gyp
npm install -g vsce
npm install -g gulp
- name: install
run: npm install
- name: scripts
run: |
gulp tslint
gulp genAikey
vsce package
- name: run tests
if: ${{ matrix.os != 'windows-latest' }}
uses: GabrielBB/xvfb-action@v1
with:
run: npm test --silent

deploy:
needs: build
runs-on: ubuntu-latest
environment: vsix-publishing
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps:
- run: echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- run: echo ${{env.VERSION}}
- name: Checkout
uses: actions/checkout@v2
- name: get node
uses: actions/setup-node@v1
with:
node-version: 11.x
- name: linux setup
run: |
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0
sleep 3
sudo apt-get update
sudo apt-get install g++-multilib
sudo apt-get install -y build-essential
sudo apt-get install libudev-dev
- name: preinstall
run: |
npm install -g node-gyp
npm install -g vsce
npm install -g gulp
- name: install
run: npm install
- name: scripts
run: |
gulp tslint
gulp genAikey
vsce package
- name: upload .vsix to github tag
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.OAUTH_TOKEN }}
file: ${{github.workspace}}/vscode-arduino*.vsix
tag: ${{ github.ref }}
overwrite: true
file_glob: true
- name: publish
if: github.ref == 'refs/tags/[0-9].[0-9].[0-9]'
run: vsce publish -p ${{ secrets.VSCE_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/stale-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
stale-issue-message: 'This issue has been automatically marked as stale because it has no recent activities. It will be closed if no further activity occurs within 3 days. Thank you for your contributions.'
stale-issue-label: 'stale'
days-before-stale: 7
only-labels: 'need more info'
only-labels: 'needs more info'
last-updated-user-type: 'collaborator'
days-before-close: 3
operations-per-run: 150
89 changes: 0 additions & 89 deletions .travis.yml

This file was deleted.