feat: add taskfile #83
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
name: "Build for Linux (Ubuntu)" | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
clang-format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Init taskfile | |
uses: KoiFresh/.taskfile/.github/workflows/taskfile.yaml@main | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo ./taskfile deps:dev | |
- name: Check formating | |
run: | | |
./taskfile format:check | |
linux-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Init taskfile | |
uses: KoiFresh/.taskfile/.github/workflows/taskfile.yaml@main | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo ./taskfile deps:build | |
- name: Build the core | |
run: | | |
./taskfile build | |
linux-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Init taskfile | |
uses: KoiFresh/.taskfile/.github/workflows/taskfile.yaml@main | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo ./taskfile deps:build | |
- name: Build and run tests | |
run: | | |
./taskfile test | |
debian-package: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Init taskfile | |
uses: KoiFresh/.taskfile/.github/workflows/taskfile.yaml@main | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo ./taskfile deps:build | |
- name: Build and run tests | |
run: | | |
./taskfile package |