ghaction-upx/.github/workflows/ci.yml
CrazyMax 7070b31d6a
Enhance workflow (#141)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-03-30 22:40:52 +02:00

54 lines
1.6 KiB
YAML

name: ci
on:
schedule:
- cron: '0 10 * * *' # everyday at 10am
push:
branches:
- 'master'
- 'releases/v*'
tags:
- 'v*'
pull_request:
branches:
- 'master'
- 'releases/v*'
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
version:
- latest
- v3.95
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Download files
shell: bash
run: |
mkdir ./bin
if [ "${{ matrix.os }}" = "windows-latest" ]; then
curl -sSLk https://github.com/crazy-max/firefox-history-merger/releases/download/2.4.0/firefox-history-merger-windows-4.0-386.exe -o ./bin/firefox-history-merger-windows-4.0-386.exe
curl -sSLk https://github.com/crazy-max/firefox-history-merger/releases/download/2.4.0/firefox-history-merger-windows-4.0-amd64.exe -o ./bin/firefox-history-merger-windows-4.0-amd64.exe
else
curl -sSLk https://github.com/crazy-max/firefox-history-merger/releases/download/2.4.0/firefox-history-merger-linux-386 -o ./bin/firefox-history-merger-linux-386
curl -sSLk https://github.com/crazy-max/firefox-history-merger/releases/download/2.4.0/firefox-history-merger-linux-amd64 -o ./bin/firefox-history-merger-linux-amd64
fi
chmod +x ./bin/firefox-history-merger*
-
name: UPX
uses: ./
with:
version: ${{ matrix.version }}
files: |
./bin/firefox-history-merger*
args: -fq