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

84 lines
2.2 KiB
YAML
Raw Normal View History

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:
- 'master'
- 'releases/v*'
tags:
- 'v*'
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@v4
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
2023-05-03 09:50:31 -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
uses: actions/checkout@v4
-
name: UPX
uses: ./
with:
version: ${{ matrix.version }}
install-only: true
-
2023-05-03 09:50:31 -06:00
name: Verify
run: |
which upx
upx --version