Skip to content

Commit

Permalink
Enable builds from source, clean up README
Browse files Browse the repository at this point in the history
  • Loading branch information
BlastBrothers authored Jul 6, 2024
1 parent 13fcba6 commit 91900fc
Show file tree
Hide file tree
Showing 151 changed files with 3,959 additions and 16,297 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,49 +8,49 @@ jobs:
release_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Add CEdev-Linux
- uses: actions/checkout@v4
- name: Run compile.sh
run: |
wget https://github.com/CE-Programming/toolchain/releases/download/v11.2/CEdev-Linux.tar.gz
mkdir /usr/share/CEdev
tar -xvf CEdev-Linux.tar.gz -C /usr/share/
rm CEdev-Linux.tar.gz
cp -r . /usr/share/CEdev/
cd ..
mkdir temp
cd temp
sudo sh ${{ github.workspace }}/compile.sh ${{ github.workspace }}
- name: Zip (Linux)
run: |
cd /usr/share
zip -r AgDev_release_${{ github.ref_name }}_linux.zip CEdev -x '*.git*' -x '*.github*'
cd ${{ github.workspace }}/../temp/AgDev_build/
zip -r "${{ github.workspace }}/../temp/AgDev_release_${{ github.ref_name }}_linux.zip" .
ls
- name: Upload Linux ZIP to GitHub Release
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: /usr/share/AgDev_release_${{ github.ref_name }}_linux.zip
file: ${{ github.workspace }}/../temp/AgDev_release_${{ github.ref_name }}_linux.zip
tags: true

release_windows:
runs-on: ubuntu-latest
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Add CEdev-Windows
- uses: actions/checkout@v4
- name: Run compile.bat
run: |
wget https://github.com/CE-Programming/toolchain/releases/download/v11.2/CEdev-Windows.zip
mkdir /usr/share/CEdev
unzip CEdev-Windows.zip -d /usr/share/
rm CEdev-Windows.zip
cp -r . /usr/share/CEdev/
cd ..
mkdir temp
cd temp
${{ github.workspace }}\compile.bat ${{ github.workspace }}
- name: Zip (Windows)
run: |
cd /usr/share
zip -r AgDev_release_${{ github.ref_name }}_windows.zip CEdev -x '*.git*' -x '*.github*'
cd ${{ github.workspace }}\..\temp\AgDev_build
powershell -Command "Compress-Archive * AgDev_release_${{ github.ref_name }}_windows.zip"
dir
- name: Upload Windows ZIP to GitHub Release
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: /usr/share/AgDev_release_${{ github.ref_name }}_windows.zip
file: ${{ github.workspace }}\..\temp\AgDev_build\AgDev_release_${{ github.ref_name }}_windows.zip
tags: true
13 changes: 8 additions & 5 deletions COMPILE.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# AgDev - compile instructions

A script ```compile.sh``` can be used to compile this source tree.
It is a Linux only compile script.
Broadly speaking, compiling AgDev entails cloning CEdev, then copying AgDev source files on top of that repo, and then building CEdev, with some additional cleanup work performed afterwards. However, there's a lot of ways this can go wrong, so build scripts are provided to make this process easier. These scripts will place the AgDev build inside the `AgDev_build` folder relative to where they're called. They take an optional argument which points to a local copy of the AgDev git repo; if this is not provided it will pull from the main branch on GitHub instead.

You should clone the repo or extract the release, then just run the bash script `compile.sh`
As part of the script it will download https://github.com/CE-Programming/toolchain/releases/latest/download/CEdev-Linux.tar.gz
If you run into issues, try installing the CEdev prerequisite libraries (fasmg, ez80-clang, and MinGW for Windows users) as described in the [CEdev compilation instructions](https://ce-programming.github.io/toolchain/static/contributing.html).

After the code is compiled, move the CEdev directory to wherever you desire and add the CEdev/bin directory to your path.
## Windows

`compile.bat [path\to\agdev\repo]`

## Linux

`sudo sh compile.sh [path/to/agdev/repo/]`
Loading

0 comments on commit 91900fc

Please sign in to comment.