forked from kornelski/pngquant
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 940 Bytes
/
rust.yml
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
name: Rust
on:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install latest rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
override: true
- name: Build
run: cargo build --release && strip target/release/pngquant && mv target/release/pngquant target/release/pngquant_amd64
- name: Upload the release package
uses: actions/upload-artifact@v4
with:
path: target/release/pngquant_amd64
name: pngquant_amd64
# - name: Release
# uses: softprops/action-gh-release@v1
# with:
# files: |
# target/release/pngquant_amd64
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}