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

Commit 6b5e282

Browse files
committed
fixup! ci: init
Signed-off-by: Sefa Eyeoglu <[email protected]>
1 parent 3425d36 commit 6b5e282

File tree

3 files changed

+3
-112
lines changed

3 files changed

+3
-112
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -8,45 +8,25 @@ on:
88

99
jobs:
1010
build:
11-
name: Build (${{ matrix.os }})
11+
name: Nix Build
1212

13-
strategy:
14-
fail-fast: false
15-
matrix:
16-
include:
17-
- os: ubuntu-latest
18-
use-nix: true
19-
- os: windows-latest
20-
use-nix: false
21-
22-
runs-on: ${{ matrix.os }}
13+
runs-on: ubuntu-latest
2314

2415
steps:
2516
- name: Checkout repository
2617
uses: actions/checkout@v4
2718

28-
- name: Install Rust
29-
if: ${{ !matrix.use-nix }}
30-
uses: actions-rust-lang/setup-rust-toolchain@v1
31-
3219
- name: Install Nix
33-
if: ${{ matrix.use-nix }}
3420
uses: DeterminateSystems/nix-installer-action@v16
3521

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

4025
- name: Build
41-
if: ${{ !matrix.use-nix }}
42-
run: cargo build --locked
43-
44-
- name: Build
45-
if: ${{ matrix.use-nix }}
4626
run: nix build --print-build-logs .#modmail
4727

4828
flake:
49-
name: Flake checks
29+
name: Nix Check
5030

5131
runs-on: ubuntu-latest
5232

@@ -63,17 +43,3 @@ jobs:
6343
- name: Run checks
6444
run: |
6545
nix flake check --print-build-logs --show-trace
66-
67-
# Make sure all above jobs finished successfully
68-
release-gate:
69-
name: CI Release gate
70-
needs: [build, flake]
71-
72-
if: ${{ always() }}
73-
74-
runs-on: ubuntu-latest
75-
76-
steps:
77-
- name: Exit with error
78-
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
79-
run: exit 1

.github/workflows/docker-image.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/lints.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)