Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pyinstaller GitHub actions #240

Merged
merged 75 commits into from
Nov 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
62758e9
🔖 Release 3.3.3 (#215)
BennyBot May 25, 2022
053a2a6
Merge pull request #218 from purduesigbots/master
BennyBot May 27, 2022
f57a010
✨Set team number and robot name (#219)
BennyBot Aug 4, 2022
ac6135d
✨Terminal file output (#220)
sharmaneha03 Aug 22, 2022
7e992fe
Fix typo in comment
omegaStag Sep 6, 2022
27f795d
Merge pull request #226 from purduesigbots/fix-typo
omegaStag Sep 9, 2022
12c2239
add FEATURE_REQUEST.md (#230)
SizzinSeal Sep 23, 2022
d953b0d
✨Move Issue Template Files (#231)
SizzinSeal Sep 23, 2022
06a9648
Create main.yml
kunwarsahni01 Oct 6, 2022
36c9fb2
Update main.yml
kunwarsahni01 Oct 6, 2022
b9ece91
Add pyinstaller requirement
kunwarsahni01 Oct 6, 2022
d237f48
Add .spec file
kunwarsahni01 Oct 6, 2022
a7805f9
Update main.yml
kunwarsahni01 Oct 6, 2022
43bf0da
add universal2 arch
kunwarsahni01 Oct 6, 2022
df48bae
Merge branch 'feature/pyinstaller-github-actions' of https://github.c…
kunwarsahni01 Oct 6, 2022
29bec99
Update main.yml
kunwarsahni01 Oct 6, 2022
dbbbf06
Update main.yml
kunwarsahni01 Oct 6, 2022
e873394
Update main.yml
kunwarsahni01 Oct 6, 2022
28766b2
Update main.yml
kunwarsahni01 Oct 6, 2022
e551aa5
Update main.yml
kunwarsahni01 Oct 6, 2022
72558b7
Update main.yml
kunwarsahni01 Oct 6, 2022
cfb66a5
Update main.yml
kunwarsahni01 Oct 6, 2022
1215d3f
Update main.yml
kunwarsahni01 Oct 6, 2022
04a0204
Update main.yml
kunwarsahni01 Oct 6, 2022
4a4860a
Update main.yml
kunwarsahni01 Oct 6, 2022
044b8eb
Update main.yml
kunwarsahni01 Oct 6, 2022
ff149ab
Update main.yml
kunwarsahni01 Oct 6, 2022
4475814
Update main.yml
kunwarsahni01 Oct 6, 2022
6b155c8
Update main.yml
kunwarsahni01 Oct 6, 2022
6193854
Update main.yml
kunwarsahni01 Oct 6, 2022
8258c8f
Update main.yml
kunwarsahni01 Oct 6, 2022
3cec4c5
Update main.yml
kunwarsahni01 Oct 6, 2022
15124f5
Update main.yml
kunwarsahni01 Oct 6, 2022
7705026
Update main.yml
kunwarsahni01 Oct 6, 2022
19c3694
Update main.yml
kunwarsahni01 Oct 6, 2022
d27c718
Update main.yml
kunwarsahni01 Oct 6, 2022
9869073
Update main.yml
kunwarsahni01 Oct 11, 2022
df967d5
Update main.yml
kunwarsahni01 Oct 11, 2022
54019d7
Update main.yml
kunwarsahni01 Oct 11, 2022
5c7a1aa
Update main.yml
kunwarsahni01 Oct 11, 2022
f7b5cc3
Update main.yml
kunwarsahni01 Oct 11, 2022
24b909a
attempt fake version number
kunwarsahni01 Oct 11, 2022
0bfe4bc
Update main.yml
kunwarsahni01 Oct 11, 2022
956bcd6
Update main.yml
kunwarsahni01 Oct 11, 2022
ae2de1e
Update main.yml
kunwarsahni01 Oct 11, 2022
263413d
version.py exception
kunwarsahni01 Oct 11, 2022
17bfac5
Update main.yml
kunwarsahni01 Oct 11, 2022
5a2bd27
Try adding --always and stderr
kunwarsahni01 Oct 11, 2022
9061306
Merge branch 'feature/pyinstaller-github-actions' of https://github.c…
kunwarsahni01 Oct 11, 2022
37dea7f
remove --always
kunwarsahni01 Oct 11, 2022
32ce9ba
fetch tags to prevent name error?
kunwarsahni01 Oct 11, 2022
eb064dd
Add Fetch Depth
kunwarsahni01 Oct 11, 2022
f5a1701
Update main.yml
kunwarsahni01 Oct 11, 2022
c5568dc
Update main.yml
kunwarsahni01 Oct 11, 2022
826e3b2
Update main.yml
kunwarsahni01 Oct 11, 2022
d6fc7a3
Update main.yml
kunwarsahni01 Oct 11, 2022
f32ebb5
Update main.yml
kunwarsahni01 Oct 11, 2022
19e1bd0
Update main.yml
kunwarsahni01 Oct 11, 2022
4337c8c
Update main.yml
kunwarsahni01 Oct 11, 2022
6903206
Update main.yml
kunwarsahni01 Oct 11, 2022
e0a1370
Update requirements.txt
kunwarsahni01 Oct 11, 2022
98d08e0
Remove older ci/cd files
kunwarsahni01 Oct 12, 2022
0aa5b0d
Move to new build constants system
kunwarsahni01 Oct 13, 2022
058a086
Basic Import structure for pyinstaller
kunwarsahni01 Oct 13, 2022
4dc7b11
Move back to spec file
kunwarsahni01 Oct 13, 2022
f8e6d2f
Install wheel first
kunwarsahni01 Oct 13, 2022
8cdfdc3
Correct constant writing
kunwarsahni01 Oct 13, 2022
54bd48e
Remove old Build Constants
kunwarsahni01 Oct 13, 2022
2fe5be6
Add wheel building
kunwarsahni01 Oct 18, 2022
60c2ccf
Different Name for Wheel Artifact
kunwarsahni01 Oct 18, 2022
8501e37
Typo
kunwarsahni01 Oct 18, 2022
d905f76
Codeql Analysis
kunwarsahni01 Oct 18, 2022
7963dcb
Only on dev/master for code scan
kunwarsahni01 Oct 18, 2022
f24c415
Update main.yml
kunwarsahni01 Oct 19, 2022
c3744e4
Update main.yml
kunwarsahni01 Oct 19, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .arcconfig

This file was deleted.

21 changes: 0 additions & 21 deletions .arclint

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
name: Bug Report template
about: Default template for bug reports
title: "🐛"
labels: ''
assignees: ''
---

#### Expected Behavior:
<!-- Describe what you expected to happen -->

Expand Down
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/FEATURE_REQUEST.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature Request template
about: Default template for feature requests
title: "✨"
labels: ''
assignees: ''

---

#### Requested Feature
<!-- Describe the feature you want to be implemented -->

#### Is this Feature Related to a Problem?
<!-- Describe the problem related to this feature -->

#### Benefits of Feature
<!-- Describe the benefits of this feature -->

#### Additional Information
<!-- Is there any additional information you think is relevant? -->
74 changes: 74 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ "develop", master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "develop" ]
schedule:
- cron: '16 12 * * 3'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'python' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
90 changes: 90 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: Build PROS CLI

on:
push:
pull_request:

jobs:
update_build_number:
runs-on: ubuntu-latest
outputs:
output1: ${{ steps.step1.outputs.test }}
steps:
- uses: actions/checkout@v3.1.0
with:
fetch-depth: 0
- name: Update Build Number
id: step1
run: |
python3 version.py
echo "::set-output name=test::$(cat version)"

build:
needs: update_build_number
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v3.1.0
with:
fetch-depth: 0

- name: Setup Python
uses: actions/setup-python@v4.3.0
with:
python-version: 3.9
cache: 'pip'
if: matrix.os != 'macos-latest'

- name: Setup Python MacOS
run: |
wget https://www.python.org/ftp/python/3.9.2/python-3.9.2-macos11.pkg
sudo installer -verbose -pkg ./python-3.9.2-macos11.pkg -target /
echo "/Library/Frameworks/Python.framework/Versions/3.9/bin" >> $GITHUB_PATH
if: matrix.os == 'macos-latest'

- name: Install Requirements
run: python3 -m pip install --upgrade pip && pip3 install wheel && pip3 install -r requirements.txt && pip3 uninstall -y typing

- name: Build Wheel
run: python3 setup.py bdist_wheel
if: matrix.os == 'ubuntu-latest'

- name: Upload Wheel
uses: actions/upload-artifact@v3.1.0
with:
name: pros-cli-wheel-${{needs.update_build_number.outputs.output1}}
path: dist/*
if: matrix.os == 'ubuntu-latest'

- name: Run Pyinstaller
run: |
python3 version.py
pyinstaller pros.spec
pyinstaller --onefile pros/cli/compile_commands/intercept-cc.py --name=intercept-cc
pyinstaller --onefile pros/cli/compile_commands/intercept-cc.py --name=intercept-c++
if: matrix.os != 'macos-latest'

- name: Run Pyinstaller MacOS
run: |
python3 version.py
pyinstaller pros-macos.spec
pyinstaller --onefile pros/cli/compile_commands/intercept-cc.py --name=intercept-cc --target-arch=universal2
pyinstaller --onefile pros/cli/compile_commands/intercept-cc.py --name=intercept-c++ --target-arch=universal2
if: matrix.os == 'macos-latest'

- name: Package Everything Up
shell: bash
run: |
cd dist/
mv intercept-cc pros
mv intercept-c++ pros

- name: Upload Artifact
uses: actions/upload-artifact@v3.1.0
with:
name: ${{ matrix.os }}-${{needs.update_build_number.outputs.output1}}
path: dist/*
40 changes: 0 additions & 40 deletions Jenkinsfile

This file was deleted.

Empty file added _constants.py
Empty file.
120 changes: 0 additions & 120 deletions azure-pipelines.yml

This file was deleted.

Loading