Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

Commit

Permalink
fixup! ci: init
Browse files Browse the repository at this point in the history
Signed-off-by: Sefa Eyeoglu <[email protected]>
  • Loading branch information
Scrumplex committed Dec 7, 2024
1 parent be98504 commit 1cad24c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 112 deletions.
40 changes: 3 additions & 37 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,45 +8,25 @@ on:

jobs:
build:
name: Build (${{ matrix.os }})
name: Nix Build

strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
use-nix: true
- os: windows-latest
use-nix: false

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

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Rust
if: ${{ !matrix.use-nix }}
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Install Nix
if: ${{ matrix.use-nix }}
uses: DeterminateSystems/nix-installer-action@v16

- name: Setup Nix cache
if: ${{ matrix.use-nix }}
uses: DeterminateSystems/magic-nix-cache-action@v8

- name: Build
if: ${{ !matrix.use-nix }}
run: cargo build --locked

- name: Build
if: ${{ matrix.use-nix }}
run: nix build --print-build-logs .#modmail

flake:
name: Flake checks
name: Nix Check

runs-on: ubuntu-latest

Expand All @@ -63,17 +43,3 @@ jobs:
- name: Run checks
run: |
nix flake check --print-build-logs --show-trace
# Make sure all above jobs finished successfully
release-gate:
name: CI Release gate
needs: [build, flake]

if: ${{ always() }}

runs-on: ubuntu-latest

steps:
- name: Exit with error
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
run: exit 1
42 changes: 0 additions & 42 deletions .github/workflows/docker-image.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/lints.yml

This file was deleted.

0 comments on commit 1cad24c

Please sign in to comment.