This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
implement TIny_Hacker's wrapping system. #152
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
name: Build and Release Dev | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@main | |
- name: Get repository information | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
const repo = context.payload.repository.full_name; | |
console.log(`The repository is ${repo}`); | |
- name: Install dependencies | |
run: sudo apt-get update && sudo apt-get install -y make tar | |
- name: Download and extract CEdev | |
run: | | |
curl -sL github.com/CE-Programming/toolchain/releases/download/v11.2/CEdev-Linux.tar.gz | tar xz | |
- name: Add CEdev to PATH | |
run: | | |
echo "CEdev/bin" >> $GITHUB_PATH | |
echo $GITHUB_PATH | |
- name: Make GFX | |
run: make gfx | |
- name: Build TINET.8xp | |
run: make | |
- name: Upload TINET.8xp | |
uses: actions/upload-artifact@v3 | |
with: | |
name: TINET.8xp | |
path: bin/TINET.8xp | |
- name: Set final commit status | |
uses: myrotvorets/set-commit-status-action@master | |
if: always() | |
with: | |
sha: ${{ steps.comment-branch.outputs.head_sha }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
status: ${{ job.status }} | |
- name: Create Development Release | |
id: create_release | |
uses: actions/create-release@main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: DEV-${{ github.run_number }} | |
release_name: DEV-${{ github.run_number }} | |
draft: false | |
prerelease: true | |
- name: Add TINET.8xp to Release | |
uses: actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: bin/TINET.8xp | |
asset_name: TINET.8xp | |
asset_content_type: application/octet-stream |