File tree Expand file tree Collapse file tree 2 files changed +72
-11
lines changed Expand file tree Collapse file tree 2 files changed +72
-11
lines changed Original file line number Diff line number Diff line change 1
1
name : build
2
2
on :
3
3
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 :
15
6
permissions :
16
7
contents : write
17
8
jobs :
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments