-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from stardot/proposed-updates
Land v1.10 (the long-lived proposed-updates branch)
- Loading branch information
Showing
200 changed files
with
5,260 additions
and
1,370 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# https://editorconfig.org/ | ||
|
||
root = true | ||
|
||
[*] | ||
end_of_line = crlf | ||
insert_final_newline = true | ||
|
||
[*.{c,h,cpp}] | ||
indent_style = tab | ||
tab_width = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Build and run tests | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
cmake: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: ['ubuntu-22.04', 'macos-12', 'ubuntu-20.04'] | ||
cc: [ 'gcc', 'clang' ] | ||
name: Compile via CMakeLists.txt on ${{ matrix.os }} using ${{ matrix.cc }} | ||
env: | ||
CFLAGS: '-Wextra -Werror' | ||
CXXFLAGS: '-Wextra -Werror' | ||
CC: ${{ matrix.cc }} | ||
CXX: ${{ matrix.cc }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: cmake . | ||
- run: make | ||
- run: make test CTEST_OUTPUT_ON_FAILURE=TRUE | ||
make: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: ['ubuntu-22.04', 'macos-12', 'ubuntu-20.04'] | ||
name: Compile via Makefile on ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: make -C src all VERBOSE=1 | ||
msbuild: | ||
runs-on: windows-2019 | ||
name: Compile via msbuild on Windows | ||
steps: | ||
- name: Add msbuild to PATH | ||
uses: microsoft/setup-msbuild@v1.0.2 | ||
- uses: actions/checkout@v2 | ||
- name: Build Binary | ||
shell: cmd | ||
working-directory: .\src\VS2010 | ||
run: call .\build.cmd | ||
- run: python test\testrunner.py -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Create Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
create_release: | ||
name: Create GitHub Release | ||
runs-on: windows-2019 | ||
defaults: | ||
run: | ||
working-directory: .\src\VS2010 | ||
|
||
steps: | ||
- name: Add msbuild to PATH | ||
uses: microsoft/setup-msbuild@v1.0.2 | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Build Binary | ||
shell: cmd | ||
run: call .\build.cmd | ||
|
||
- name: Package Binary | ||
shell: cmd | ||
run: call .\package.cmd | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
body: | | ||
Automated Release by GitHub Action CI | ||
draft: false | ||
prerelease: true | ||
|
||
- name: Upload Release Asset (Windows x86) | ||
id: upload-release-asset-x86 | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./src/VS2010/beebasm-win32.zip | ||
asset_name: beebasm-win32.zip | ||
asset_content_type: application/zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,7 @@ | |
*.swp | ||
/beebasm | ||
/src/objects | ||
test/testlog.txt | ||
test/**/test | ||
test/**/test.ssd | ||
test/**/testgold.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
|
||
project(beebasm) | ||
|
||
add_compile_options(-Wall -W -Wcast-qual -Wshadow -Wcast-align -Wold-style-cast -Woverloaded-virtual) | ||
|
||
set(CMAKE_CXX_STANDARD 11) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
# Existing Makefile does a glob to find source files, so we do the same. | ||
FILE(GLOB CPPSources src/*.cpp) | ||
|
||
add_executable(beebasm ${CPPSources}) | ||
target_link_libraries(beebasm stdc++ m) | ||
|
||
install(TARGETS beebasm DESTINATION bin) | ||
install(FILES ${CMAKE_SOURCE_DIR}/beebasm.1 DESTINATION share/man/man1) | ||
|
||
enable_testing() | ||
|
||
add_test(NAME Runs COMMAND ./beebasm -i demo.6502 -do demo.ssd -boot Code -v) | ||
add_test(NAME Tests COMMAND python3 test/testrunner.py -v) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.