From 4f01cca7ffb6cf28fe161d4a7648face7b64fd34 Mon Sep 17 00:00:00 2001 From: Kreyren Date: Mon, 10 Feb 2020 15:36:34 +0000 Subject: [PATCH] fhdfhs --- .github/workflows/C.yml | 2 +- .github/workflows/CPP.yml | 2 +- .github/workflows/python.yml | 2 +- .github/workflows/rustlang.yml | 60 ++++++++++++++++++++++++++++++++++ 4 files changed, 63 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/rustlang.yml diff --git a/.github/workflows/C.yml b/.github/workflows/C.yml index da10a25..03281bb 100644 --- a/.github/workflows/C.yml +++ b/.github/workflows/C.yml @@ -17,7 +17,7 @@ jobs: - name: Installing dependencies.. run: if ! apt list --installed | grep -qP ".*cppcheck.*"; then apt install -y cppcheck; fi - name: Linting.. - run: for file in $(git --no-pager diff --name-only origin/master | grep -oP "^\w+\.c") ;do cppcheck "$file";done + run: for file in $(git --no-pager diff --name-only origin/master | grep -o ".*\.c") ;do cppcheck "$file";done # Kernel specific builds build-gcc-c: runs-on: ${{ matrix.os }} diff --git a/.github/workflows/CPP.yml b/.github/workflows/CPP.yml index ece1c40..dfebb58 100644 --- a/.github/workflows/CPP.yml +++ b/.github/workflows/CPP.yml @@ -17,7 +17,7 @@ jobs: - name: Installing dependencies.. run: if ! apt list --installed | grep -qP ".*cppcheck.*"; then apt install -y cppcheck; fi - name: Linting.. - run: for file in $(git --no-pager diff --name-only origin/master | grep -oP "^\w+\.cpp") ;do cppcheck "$file";done + run: for file in $(git --no-pager diff --name-only origin/master | grep -o ".*\.cpp") ;do cppcheck "$file";done # Kernel specific builds build-gcc-cpp: runs-on: ${{ matrix.os }} diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 656be7b..03a84cd 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -36,7 +36,7 @@ jobs: - name: Test with pytest run: | pip install pytest - for file in $(git --no-pager diff --name-only origin/master | grep -oP "^\w+\.py") ;do pytest "$file";done + for file in $(git --no-pager diff --name-only origin/master | grep -o ".*\.py") ;do pytest "$file";done # Kernel specific builds build-python: runs-on: ${{ matrix.os }} diff --git a/.github/workflows/rustlang.yml b/.github/workflows/rustlang.yml new file mode 100644 index 0000000..6cdc30b --- /dev/null +++ b/.github/workflows/rustlang.yml @@ -0,0 +1,60 @@ +# Workflow for Rustlang +name: RonaLisa + +# Relevant to events - https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows +on: + pull_request: + types: [synchronize, opened, reopened, ready_for_review] + paths: + - '**.rs' + +jobs: + # Kernel specific builds + build-rustlang: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [macos-latest, windows-latest] + steps: + - uses: actions/checkout@v2 + - name: building.. + run: make build-rustlang + + # Docker builds + build-rustlang-debian: + runs-on: ubuntu-latest + steps: + - uses: docker://debian/testing:latest + - uses: actions/checkout@v2 + - name: building.. + run: make build-rustlang + + build-rustlang-fedora: + runs-on: ubuntu-latest + steps: + - uses: docker://fedora/latest:latest + - uses: actions/checkout@v2 + - name: building.. + run: make build-rustlang + + # Run tests + check-rustlang: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [macos-latest, windows-latest, ubuntu-latest] + steps: + - uses: actions/checkout@v2 + - name: running tests.. + run: make check-rustlang + + # Benchmarks + bench-rustlang: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [macos-latest, windows-latest, ubuntu-latest] + steps: + - uses: actions/checkout@v2 + - name: running benchmarks.. + run: make bench-rustlang \ No newline at end of file