Skip to content

patch

patch #104

name: Platform Tests & Build
on: [push]
env:
PATCHER_URL: ${{ vars.PATCHER_URL == '' && format('https://github.com/{0}/releases/latest/download/', github.repository) || vars.PATCHER_URL }}
FILELIST_URL: ${{ vars.FILELIST_URL == '' && format('https://github.com/{0}/releases/latest/download', github.repository) || vars.FILELIST_URL }}
STORAGE_URL: ${{ vars.STORAGE_URL == '' && format('https://raw.githubusercontent.com/{0}/master/', github.repository) || vars.STORAGE_URL }}
jobs:
platform_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Set Version
run: make set-version
- uses: WillAbides/[email protected]
env:
FILELIST_URL: ${{ vars.FILELIST_URL }}
with:
go-version: 1.19
# - name: Get dependencies
# run: sudo apt-get update && sudo apt-get install foo
# - name: Tests
# run: go test -tags ci ./...
# - name: Wayland Tests
# run: go test -tags ci,wayland ./...
- name: Build binary
run: |
make build-windows
- name: Build FileList
run: |
cd rof
wget --no-verbose https://github.com/xackery/filelistbuilder/releases/latest/download/filelistbuilder-linux-x64
chmod +x filelistbuilder-linux-x64
./filelistbuilder-linux-x64 "rof" "${{env.STORAGE_URL}}" "../bin/launcheq.exe"
mv eqemupatcher-hash.txt ../bin/launcheq-hash.txt
# - name: Update coverage
# run: |
# GO111MODULE=off go get github.com/mattn/goveralls
# set -e
# go test -tags ci -covermode=atomic -coverprofile=coverage.out ./...
# coverage=`go tool cover -func coverage.out | grep total | tr -s '\t' | cut -f 3 | grep -o '[^%]*'`
# if (( $(echo "$coverage < 5" | bc) )); then echo "Test coverage lowered"; exit 1; fi
# - name: Update PR Coverage
# uses: shogo82148/actions-goveralls@v1
# with:
# path-to-profile: coverage.out
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ env.VERSION }}.${{ github.run_number }}"
prerelease: false
title: "${{ env.VERSION }}.${{ github.run_number }}"
files: |
bin/launcheq.exe
bin/launcheq-hash.txt
rof/filelist_rof.yml
rof/patch.zip