2020-09-08 11:04:25 +02:00
|
|
|
name: pxt-testghpkgs
|
|
|
|
|
|
|
|
on:
|
2020-11-30 08:45:00 +01:00
|
|
|
workflow_dispatch:
|
2020-09-08 11:04:25 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
node-version: [8.x]
|
2022-03-22 17:36:19 +01:00
|
|
|
branch: [stable3.0]
|
2020-09-08 11:04:25 +02:00
|
|
|
|
|
|
|
steps:
|
2022-03-22 17:36:19 +01:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
ref: ${{ matrix.branch }}
|
2020-09-08 11:04:25 +02:00
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: npm install
|
|
|
|
run: |
|
|
|
|
sudo npm install -g pxt
|
|
|
|
npm install
|
|
|
|
- name: pxt buildtarget
|
|
|
|
run: pxt buildtarget
|
|
|
|
- name: cache build output
|
|
|
|
uses: actions/cache@v1
|
|
|
|
env:
|
|
|
|
cache-name: cache-testghpkgs
|
|
|
|
with:
|
|
|
|
path: temp/ghpkgs
|
|
|
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
|
|
|
${{ runner.os }}-build-
|
|
|
|
${{ runner.os }}-
|
|
|
|
- name: pxt testghpkgs
|
|
|
|
run: pxt testghpkgs
|
|
|
|
env:
|
|
|
|
PXT_FORCE_GITHUB_PROXY: 1
|
|
|
|
PXT_ACCESS_TOKEN: ${{ secrets.PXT_ACCESS_TOKEN }}
|
|
|
|
GITHUB_TOKEN: ${{ secrets.TRAVIS_GITHUB_ACCESS_TOKEN }}
|
|
|
|
- name: upload build log
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
if: ${{ always() }}
|
|
|
|
with:
|
2022-03-22 17:36:19 +01:00
|
|
|
name: logs-${{ matrix.branch }}
|
2020-09-08 11:04:25 +02:00
|
|
|
path: temp/ghpkgs/*.txt
|