-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added github actions CI, removed Travis CI files.
Packaging a release no longer needs to account for different 'tar' implementations. Also renamed packaging command from 'box' to 'Package' to be in line with LLVM packaging naming. Now only published 2 release packages, one for linux and one for macos.
- Loading branch information
Showing
8 changed files
with
130 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: 'Build Package' | ||
description: 'Builds all binaries and packages them' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install dependencies (Ubuntu) | ||
if: runner.os == 'Linux' | ||
shell: bash | ||
run: | | ||
sudo apt-get update -qq | ||
sudo apt-get install libboost-dev libboost-program-options-dev libelf-dev expect | ||
- name: Install dependencies (MacOs) | ||
if: runner.os == 'macOS' | ||
shell: bash | ||
run: | | ||
brew install libelf boost expect | ||
- name: Setup CMake | ||
shell: bash | ||
run: | | ||
mkdir -p build | ||
cd build | ||
cmake .. CMAKE_BUILD_TYPE=Release | ||
- name: Build | ||
working-directory: build | ||
shell: bash | ||
run: make $J Package | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: Simulator CI | ||
|
||
on: | ||
push: | ||
branches: '**' | ||
tags: | ||
- '[0-9]+.[0-9]+.[0-9]+' | ||
- '[0-9]+.[0-9]+.[0-9]+-**' | ||
pull_request: | ||
schedule: | ||
# Run every monday at 1:00 AM | ||
- cron: '00 1 * * MON' | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
J: -j2 | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ${{matrix.platform}} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- platform: ubuntu-22.04 | ||
cc: gcc | ||
cxx: g++ | ||
- platform: ubuntu-20.04 | ||
cc: gcc | ||
cxx: g++ | ||
- platform: macos-12 | ||
cc: clang | ||
cxx: clang++ | ||
- platform: macos-11 | ||
cc: clang | ||
cxx: clang++ | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ./.github/actions/build-package | ||
- name: Test | ||
working-directory: build | ||
shell: bash | ||
run: ctest $J --verbose --output-on-failure | ||
release: | ||
name: Release | ||
runs-on: ${{matrix.platform}} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- platform: ubuntu-20.04 | ||
cc: gcc | ||
cxx: g++ | ||
- platform: macos-11 | ||
cc: clang | ||
cxx: clang++ | ||
# Run after the test jobs finish | ||
needs: [test] | ||
# Run only if this was triggered by a tag | ||
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ./.github/actions/build-package | ||
- uses: softprops/action-gh-release@v1 | ||
with: | ||
files: build/patmos-simulator-*.tar.gz | ||
|
||
|
||
|
||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.