ghaction-upx/.github/workflows/ci.yml

57 lines
1.5 KiB
YAML
Raw Normal View History

2020-01-17 01:36:42 -07:00
name: ci
on:
2020-05-23 17:14:30 -06:00
schedule:
- cron: '0 10 * * *' # everyday at 10am
2020-01-17 01:36:42 -07:00
pull_request:
branches:
- master
2020-05-23 17:14:30 -06:00
- releases/v*
2020-01-17 01:36:42 -07:00
push:
branches:
- master
2020-05-23 17:14:30 -06:00
- releases/v*
2020-01-17 01:36:42 -07:00
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
2020-05-07 04:52:35 -06:00
version:
- latest
- v3.95
2020-01-17 01:36:42 -07:00
include:
- os: ubuntu-latest
file: https://github.com/crazy-max/firefox-history-merger/releases/download/2.4.0/firefox-history-merger-linux-amd64
- os: windows-latest
file: https://github.com/crazy-max/firefox-history-merger/releases/download/2.4.0/firefox-history-merger-windows-4.0-amd64.exe
steps:
-
name: Checkout
2020-05-06 13:14:42 -06:00
uses: actions/checkout@v2
2020-01-17 01:36:42 -07:00
-
name: Download file
id: download
run: |
mkdir ./bin
if [ "${{ matrix.os }}" == "windows-latest" ]; then
curl -sSLk ${{ matrix.file }} -o ./bin/firefox-history-merger.exe
echo ::set-output name=filename::./bin/firefox-history-merger.exe
else
curl -sSLk ${{ matrix.file }} -o ./bin/firefox-history-merger
chmod +x ./bin/firefox-history-merger
echo ::set-output name=filename::./bin/firefox-history-merger
fi
shell: bash
-
name: UPX
uses: ./
with:
version: ${{ matrix.version }}
file: ${{ steps.download.outputs.filename }}
args: -fq