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

Modernize CI #54

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ on: [push, pull_request]

jobs:
build-linux-gcc:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: build
run: |
$CC nobuild.c -o nobuild
Expand All @@ -14,9 +14,9 @@ jobs:
CC: gcc
CXX: g++
build-linux-clang:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: build
run: |
$CC nobuild.c -o nobuild
Expand All @@ -27,7 +27,7 @@ jobs:
build-macos:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: build
run: |
$CC nobuild.c -o nobuild
Expand All @@ -36,14 +36,14 @@ jobs:
CC: clang
CXX: clang++
build-windows-msvc:
runs-on: windows-2019
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
# this runs vcvarsall for us, so we get the MSVC toolchain in PATH.
- uses: seanmiddleditch/gha-setup-vsdevenv@master
- uses: actions/checkout@v4
- uses: TheMrMilchmann/setup-msvc-dev@v2 # prepare Visual Studio C++ toolchain
with:
arch: x64
- name: build
shell: cmd
# this replaces default PowerShell, which can't fail the build
shell: cmd # this replaces default PowerShell, which can't fail the build
run: |
cl.exe nobuild.c
.\nobuild.exe test