Skip to content

Commit

Permalink
CI: Move to Rocky Linux, upload artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Oct 28, 2024
1 parent a3c8cac commit 6d85e66
Showing 1 changed file with 60 additions and 23 deletions.
83 changes: 60 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,48 +4,85 @@ on: [push, pull_request]

jobs:
linux:
name: Linux
name: Rocky Linux
runs-on: ubuntu-latest
container:
image: rockylinux/rockylinux:8
steps:
- uses: actions/checkout@v3
- name: Are we really on Rocky Linux?
run: cat /etc/os-release

- name: Install dependencies
run: |
dnf update -y
dnf install -y chrpath gcc make
steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Build
run: make
run: |
make
strip -S libtheorafile.so
macos:
name: macOS
runs-on: macos-latest
- name: Archive build result
uses: actions/upload-artifact@v4
with:
name: Theorafile-lib64
path: libtheorafile.so

mingw:
name: Rocky Linux (MinGW)
runs-on: ubuntu-latest
container:
image: rockylinux/rockylinux:8
steps:
- uses: actions/checkout@v3
- name: Are we really on Rocky Linux?
run: cat /etc/os-release

- name: Install dependencies
run: |
dnf update -y
dnf install -y mingw32-gcc mingw64-gcc
steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Build
run: make
run: |
mingw32-make
mkdir x86
mv libtheorafile.dll x86/
mingw64-make
mkdir x64
mv libtheorafile.dll x64/
- name: Archive x86 build result
uses: actions/upload-artifact@v4
with:
name: Theorafile-x86
path: x86/libtheorafile.dll

- name: Archive x64 build result
uses: actions/upload-artifact@v4
with:
name: Theorafile-x64
path: x64/libtheorafile.dll

windows-mingw:
name: Windows (MinGW)
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
macos:
name: macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true

- name: Set up MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: mingw32
install: >-
mingw-w64-i686-cc
mingw-w64-i686-make
- name: Build
run: mingw32-make
run: make

freebsd:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 6d85e66

Please sign in to comment.