Skip to content

Commit

Permalink
New Github Action dev-nightly-tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mario4tier committed Nov 20, 2024
1 parent 51ceaad commit fdb5322
Showing 1 changed file with 74 additions and 0 deletions.
74 changes: 74 additions & 0 deletions .github/workflows/dev-nightly-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# Periodic tests of latest dev branch
#
# This is for early detection of breaking changes.
#

name: dev nightly tests

# Controls when the workflow will run
on:
schedule:
- cron: "0 5 * * *" # every day 5AM

workflow_dispatch:

jobs:
test:
name: Test ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-2022]

steps:
- name: Checkout dev Branch
uses: actions/checkout@v4
with:
ref: dev

- name: Install build tools (Linux)
if: runner.os == 'Linux'
shell: bash
run: sudo apt-get update && sudo apt-get install -y automake libtool autogen mcpp

- name: Install build tools (Windows)
if: runner.os == 'Windows'
run: choco install mcpp -y
shell: bash

- name: Install Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "21"

- name: Install Rust Toolchain
uses: dtolnay/rust-toolchain@stable

- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.x"

- name: Prepare environment
shell: bash
run: |
if [[ "$RUNNER_OS" == "Linux" ]]; then
echo "PYTHON=python3" >> $GITHUB_ENV
else
echo "PYTHON=python" >> $GITHUB_ENV
fi
- name: Build dist assets (as needed)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: |
$PYTHON $GITHUB_WORKSPACE/scripts/package.py
- name: Test dist assets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: |
$PYTHON $GITHUB_WORKSPACE/scripts/test-dist.py

0 comments on commit fdb5322

Please sign in to comment.