Skip to content

Commit

Permalink
Tweak the CI stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
zCubed3 committed Jan 18, 2024
1 parent 482082d commit 88abe3e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:
jobs:
build:

runs-on: windows-latest
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
Expand Down
53 changes: 23 additions & 30 deletions .github/workflows/ci_windows.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,33 @@
name: CI Windows
name: CI Build Linux 🐧| Windows 🖥️

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always
on: [ push, pull_request, workflow_dispatch ]

jobs:
build:

runs-on: ubuntu-latest

# The CMake configure and build commands are platform-agnostic and should work equally
# well on Windows or Mac. You can convert this to a matrix build if you need
# cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
build_all:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest ]
include:
- os: ubuntu-latest
artifact-name: ubuntu-build

- os: windows-latest
artifact-name: windows-build

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3
with:
submodules: 'true'

- name: Build Debug
run: cargo build --verbose
run: cargo build

- name: Build Release
run: cargo build --release --verbose

- name: Bundle CI Results
shell: bash
run: bash ./scripts/bundle_ci.sh
env:
CI_DLIB: dll
CI_SLIB: lib
CI_EXE: .exe

- uses: actions/upload-artifact@v3
with:
name: binaries
path: |
ci_build/*
run: cargo build --release

0 comments on commit 88abe3e

Please sign in to comment.