Skip to content

Commit

Permalink
Clean up CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jchv committed Aug 9, 2024
1 parent 2c69153 commit 7a09cf6
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 80 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/format.yml

This file was deleted.

49 changes: 45 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,63 @@
name: MinGW32 CI
name: CI
on:
push:
branches: [ master ]
tags: [ 'v*' ]
pull_request:
branches: [ master ]
jobs:
build:
build-mingw:
name: Build (MinGW)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v11
- uses: DeterminateSystems/magic-nix-cache-action@v6
- uses: DeterminateSystems/flake-checker-action@v7
- name: Configure
- name: Check formatting
continue-on-error: true
run: |
shopt -s globstar
nix develop --command clang-format --dry-run -Werror src/**/*.c src/**/*.h
- name: Build + Test
run: nix build
- name: Upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ijl15.dll
path: result/lib/ijl15.dll

build-msvc:
name: Build (MSVC)
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
- name: Build
run: msbuild.exe rugburn.sln "/p:Configuration=Release;Platform=x86"
- name: Upload
uses: actions/upload-artifact@v4
with:
name: ijl15-msvc.dll
path: out/Win32/Release/ijl15.dll

release:
name: Release
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
needs: build-mingw
steps:
- name: Download builds
uses: actions/download-artifact@v4
with:
name: ijl15.dll
- name: Create Release
uses: softprops/action-gh-release@v2
with:
draft: true
generate_release_notes: true
fail_on_unmatched_files: true
files:
ijl15.dll
20 changes: 0 additions & 20 deletions .github/workflows/msvc.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit 7a09cf6

Please sign in to comment.