Skip to content

Add GitHub actions #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 22 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
56 changes: 56 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

jobs:
build:
timeout-minutes: 120
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macOS-latest
runs-on: ${{ matrix.os }}
steps:

- uses: actions/checkout@v2

- name: Install Ubuntu dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install build-essential
sudo apt-get install flex
sudo apt-get install bison
sudo apt-get install texinfo

- name: Install macOS dependencies
if: matrix.os == 'macOS-latest'
run: |
brew install flex
brew install bison
brew install texinfo

- name: asdf_install
uses: asdf-vm/actions/install@v1

- name: Set LD_LIBRARY_PATH
if: matrix.os == 'ubuntu-latest'
run: |
echo "LD_LIBRARY_PATH=${{ env.LD_LIBRARY_PATH }}:${{ env.ASDF_DATA_DIR }}/installs/python/2.7.18/lib" >> $GITHUB_ENV

- name: Build toolchain
run: |
./build/build.sh

- name: Upload build result
if: always()
uses: actions/upload-artifact@v2-preview
with:
name: log-${{ github.run_id }}-${{ runner.os }}
path: rtems-source-builder/rtems/rsb-report-*.txt
46 changes: 46 additions & 0 deletions .github/workflows/tmp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: TMP

on:
- push
- workflow_dispatch

jobs:
tmp:
timeout-minutes: 120

strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macOS-latest

runs-on: ${{ matrix.os }}

steps:

- uses: actions/checkout@v2

- name: Install Ubuntu dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install build-essential
sudo apt-get install flex
sudo apt-get install bison
sudo apt-get install texinfo

- name: Install macOS dependencies
if: matrix.os == 'macOS-latest'
run: |
brew install flex
brew install bison
brew install texinfo

- name: asdf_install
uses: asdf-vm/actions/install@v1

- name: Test
run: |
which python
python --version
ls -lah ~/.asdf
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python 2.7.18