Skip to content

Commit bfe7078

Browse files
committed
Make a 'smoke' workflow
1 parent f4b7e33 commit bfe7078

File tree

2 files changed

+72
-11
lines changed

2 files changed

+72
-11
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,8 @@
11
name: build
22
on:
33
release:
4-
types: [created]
5-
push:
6-
paths-ignore:
7-
- '**.md'
8-
- '**.txt'
9-
- 'src/about.nim'
10-
branches:
11-
- master
12-
pull_request:
13-
branches:
14-
- master
4+
types: [published]
5+
workflow_dispatch:
156
permissions:
167
contents: write
178
jobs:

.github/workflows/smoke.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: smoke
2+
on:
3+
push:
4+
paths-ignore:
5+
- '**.md'
6+
- '**.txt'
7+
- 'src/about.nim'
8+
branches:
9+
- master
10+
pull_request:
11+
branches:
12+
- master
13+
jobs:
14+
main:
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
matrix:
18+
include:
19+
- os: ubuntu-latest
20+
arch: x86_64
21+
- os: macos-latest
22+
arch: arm64
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
- name: Nim
27+
if: runner.os != 'macOS'
28+
uses: jiro4989/setup-nim-action@v2
29+
with:
30+
nim-version: "stable"
31+
repo-token: ${{ secrets.GITHUB_TOKEN }}
32+
- name: Install packages for macOS
33+
if: runner.os == 'macOS'
34+
run: |
35+
brew update && brew install nim
36+
brew unlink gettext libidn2 libpng libtiff libunistring libx11 libxau libxcb libxdmcp little-cms2 unbound
37+
- name: Setup
38+
run: |
39+
if [ "${{ matrix.os }}" = "ubuntu-latest" ]; then
40+
sudo apt-get update
41+
sudo apt-get install -y build-essential pkg-config nasm git
42+
elif [ "${{ matrix.os }}" = "macos-latest" ]; then
43+
echo "MACOSX_DEPLOYMENT_TARGET=14.0" >> $GITHUB_ENV
44+
fi
45+
- name: Build FFmpeg
46+
run: nimble makeff
47+
- name: Compile
48+
run: nimble make
49+
- name: Test
50+
run: nimble test
51+
52+
windows:
53+
runs-on: ubuntu-latest
54+
steps:
55+
- name: Checkout
56+
uses: actions/checkout@v4
57+
- name: Nim
58+
uses: jiro4989/setup-nim-action@v2
59+
with:
60+
nim-version: "stable"
61+
repo-token: ${{ secrets.GITHUB_TOKEN }}
62+
- name: Install mingw-w64
63+
run: |
64+
sudo apt-get update
65+
sudo apt-get install -y mingw-w64 mingw-w64-tools mingw-w64-x86-64-dev
66+
sudo apt-get install -y build-essential pkg-config nasm git
67+
- name: Build FFmpeg
68+
run: nimble makeffwin
69+
- name: Compile
70+
run: nimble windows

0 commit comments

Comments
 (0)