-
-
Notifications
You must be signed in to change notification settings - Fork 11
51 lines (41 loc) · 1.3 KB
/
ci.yml
File metadata and controls
51 lines (41 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: CI
on:
push:
pull_request:
workflow_dispatch:
env:
FORCE_COLOR: 2
jobs:
build:
runs-on: windows-latest
steps:
- name: Clone repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
submodules: true
# We need to get all git revisions for `git describe` to work
fetch-depth: 0
persist-credentials: false
- name: Add MSVC to PATH
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
- name: Set up NASM
uses: ilammy/setup-nasm@72793074d3c8cdda771dba85f6deafe00623038b # v1.5.2
with:
version: 2.16.03
- name: Build
run: CALL "build.bat"
shell: cmd
- name: Set version variable
run: echo "JPEGOPTIM_VER=$(git describe --tags --long)" >> $GITHUB_ENV
shell: bash
- name: Prepare files
run: |
mkdir dist
cp Release/x64/jpegoptim.exe src/jpegoptim/COPYRIGHT src/jpegoptim/LICENSE src/jpegoptim/README dist/
shell: bash
- name: Upload binary
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: "jpegoptim-${{ env.JPEGOPTIM_VER }}"
path: dist/
if-no-files-found: error