Skip to content

Make a 'smoke' workflow #802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 16, 2025
Merged
Show file tree
Hide file tree
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
13 changes: 2 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
name: build
on:
release:
types: [created]
push:
paths-ignore:
- '**.md'
- '**.txt'
- 'src/about.nim'
branches:
- master
pull_request:
branches:
- master
types: [published]
workflow_dispatch:
permissions:
contents: write
jobs:
Expand Down
70 changes: 70 additions & 0 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
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
Loading