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
|
|
|
push:
|
|
|
|
branches:
|
2021-03-27 10:45:19 -06:00
|
|
|
- 'master'
|
|
|
|
- 'releases/v*'
|
2021-03-30 14:40:52 -06:00
|
|
|
tags:
|
|
|
|
- 'v*'
|
2021-03-27 10:45:19 -06:00
|
|
|
pull_request:
|
2023-01-29 07:24:04 -07:00
|
|
|
paths-ignore:
|
|
|
|
- '.github/upx-releases.json'
|
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
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2022-03-01 23:27:14 -07:00
|
|
|
uses: actions/checkout@v3
|
2020-01-17 01:36:42 -07:00
|
|
|
-
|
2021-03-27 12:31:20 -06:00
|
|
|
name: Download files
|
|
|
|
shell: bash
|
2020-01-17 01:36:42 -07:00
|
|
|
run: |
|
|
|
|
mkdir ./bin
|
2021-03-27 12:31:20 -06:00
|
|
|
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
|
2020-01-17 01:36:42 -07:00
|
|
|
else
|
2021-03-27 12:31:20 -06:00
|
|
|
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
|
2020-01-17 01:36:42 -07:00
|
|
|
fi
|
2021-03-27 12:31:20 -06:00
|
|
|
chmod +x ./bin/firefox-history-merger*
|
2020-01-17 01:36:42 -07:00
|
|
|
-
|
|
|
|
name: UPX
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
version: ${{ matrix.version }}
|
2021-03-27 12:31:20 -06:00
|
|
|
files: |
|
|
|
|
./bin/firefox-history-merger*
|
2020-01-17 01:36:42 -07:00
|
|
|
args: -fq
|