Skip to content

Commit

Permalink
Merge pull request #1 from lucka-me/add-ci
Browse files Browse the repository at this point in the history
Add CI
  • Loading branch information
lucka-me authored Apr 30, 2023
2 parents 2a2005a + 27d1572 commit 841b9f0
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 1 deletion.
59 changes: 59 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: CI

on:
push:
branches: [ 'main' ]
pull_request:
branches: [ 'main' ]

env:
BINARY_NAME: ingress-drone-explorer
ENTRANCE_SCRIPT: src/main.py

jobs:
package:
name: Package
strategy:
matrix:
os: [ windows, ubuntu ]
runs-on: ${{ matrix.os }}-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
id: setup-python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: pip install pyinstaller
- name: Package
run: pyinstaller --distpath ./bin -F -n ${{ env.BINARY_NAME }} ${{ env.ENTRANCE_SCRIPT }}
- name: Upload Binary
uses: actions/upload-artifact@v3
with:
name: ${{ env.BINARY_NAME }}-${{ runner.os }}-x86_64
path: bin/${{ env.BINARY_NAME }}*

package-macos:
name: Package for macOS
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
id: setup-python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: pip install pyinstaller
- name: Package
run: >
pyinstaller --distpath ./bin -F -n ${{ env.BINARY_NAME }} --target-arch universal2
${{ env.ENTRANCE_SCRIPT }}
- name: Upload Binary
uses: actions/upload-artifact@v3
with:
name: ${{ env.BINARY_NAME }}-${{ runner.os }}-universal
path: bin/${{ env.BINARY_NAME }}*
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ An offline CLI tool to analyze reachable Portals for Ingress Drone Mark I.

Implementations in different languages are listed and compared in [Benchmark](#benchmark).

The CI workflow builds universal binary for macOS and x86_64 binaries for Windows & Linux, the files are available as artifacts.

## Build from Source

### Requirements

- Python 3.9 (Backporting should be possible)
- Python 3.9+ (Backporting should be possible)

## Exploration Guide

Expand Down

0 comments on commit 841b9f0

Please sign in to comment.