Skip to content

Simplify test code

Simplify test code #16

Workflow file for this run

name: smoke
on:
push:
paths-ignore:
- '**.md'
- '**.txt'
- 'src/about.nim'
branches:
- master
pull_request:
branches:
- master
jobs:
main:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
arch: x86_64
- os: macos-latest
arch: arm64
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Nim
if: runner.os != 'macOS'
uses: jiro4989/setup-nim-action@v2
with:
nim-version: "stable"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install packages for macOS
if: runner.os == 'macOS'
run: |
brew update && brew install nim
brew unlink gettext libidn2 libpng libtiff libunistring libx11 libxau libxcb libxdmcp little-cms2 unbound
- name: Setup
run: |
if [ "${{ matrix.os }}" = "ubuntu-latest" ]; then
sudo apt-get update
sudo apt-get install -y build-essential pkg-config nasm git
elif [ "${{ matrix.os }}" = "macos-latest" ]; then
echo "MACOSX_DEPLOYMENT_TARGET=14.0" >> $GITHUB_ENV
fi
- name: Build FFmpeg
run: nimble makeff
- name: Compile
run: nimble make
- name: Test
run: nimble test
windows:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Nim
uses: jiro4989/setup-nim-action@v2
with:
nim-version: "stable"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install mingw-w64
run: |
sudo apt-get update
sudo apt-get install -y mingw-w64 mingw-w64-tools mingw-w64-x86-64-dev
sudo apt-get install -y build-essential pkg-config nasm git
- name: Build FFmpeg
run: nimble makeffwin
- name: Compile
run: nimble windows