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

55 lines
1.7 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
push:
branches:
- 'master'
- 'releases/v*'
tags:
- 'v*'
2023-01-29 07:24:04 -07:00
paths-ignore:
- '.github/upx-releases.json'
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
uses: actions/checkout@v3
2020-01-17 01:36:42 -07:00
-
name: Download files
shell: bash
2020-01-17 01:36:42 -07:00
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
2020-01-17 01:36:42 -07:00
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
2020-01-17 01:36:42 -07:00
fi
chmod +x ./bin/firefox-history-merger*
2020-01-17 01:36:42 -07:00
-
name: UPX
uses: ./
with:
version: ${{ matrix.version }}
files: |
./bin/firefox-history-merger*
2020-01-17 01:36:42 -07:00
args: -fq