2020-01-17 01:36:42 -07:00
|
|
|
name: ci
|
|
|
|
|
2023-05-03 09:50:31 -06:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2020-01-17 01:36:42 -07:00
|
|
|
on:
|
2020-05-23 17:14:30 -06:00
|
|
|
schedule:
|
2023-05-03 09:50:31 -06:00
|
|
|
- cron: '0 10 * * *'
|
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
|
2023-09-04 13:22:46 -06:00
|
|
|
uses: actions/checkout@v4
|
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
|
2023-05-03 09:50:31 -06:00
|
|
|
|
2023-05-02 19:44:03 -06:00
|
|
|
install-only:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- ubuntu-latest
|
|
|
|
- windows-latest
|
|
|
|
version:
|
|
|
|
- latest
|
|
|
|
- v4.0.2
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-04 13:22:46 -06:00
|
|
|
uses: actions/checkout@v4
|
2023-05-02 19:44:03 -06:00
|
|
|
-
|
|
|
|
name: UPX
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
version: ${{ matrix.version }}
|
|
|
|
install-only: true
|
|
|
|
-
|
2023-05-03 09:50:31 -06:00
|
|
|
name: Verify
|
2023-05-03 06:09:37 -06:00
|
|
|
run: |
|
2023-05-02 19:44:03 -06:00
|
|
|
which upx
|
|
|
|
upx --version
|