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

Build 01 #370

Closed
wants to merge 21 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
70 changes: 70 additions & 0 deletions .github/workflows/build-bin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Release build

on:
push:
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Check out the code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libtalloc-dev

- name: Build the project
run: |
make -C src loader.elf loader-m32.elf build.h
make -C src proot

- name: Run the test suite
run: make -C test
if: false

- name: Create a package
run: |
mv src/proot ./proot
tar -zcvf ./proot.tar.gz proot
ls -lhrt

- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: dist
path: proot.tar.gz

release:
needs: build
runs-on: ubuntu-20.04
steps:
- name: Download Artifact
uses: actions/download-artifact@v2
with:
name: dist
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CURRENT_DATE: ${{ github.event.push.timestamp }}
with:
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
draft: false
prerelease: false
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./proot.tar.gz
asset_name: proot.tar.gz
asset_content_type: application/octet-stream
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: build
on:
push:
branches:
- master
- notmaster
pull_request:
types: [opened, synchronize, reopened]

Expand Down
71 changes: 71 additions & 0 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Nightly build

on:
push:
branches:
- build-01

jobs:
build:
if: true
runs-on: ubuntu-20.04
steps:
- name: Check out the code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libtalloc-dev

- name: Build the project
run: |
make -C src loader.elf loader-m32.elf build.h
make -C src proot

- name: Run the test suite
run: make -C test
if: true

- name: Create a package
run: |
mv src/proot ./proot
tar -zcvf ./proot.tar.gz proot
ls -lhrt

- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: dist
path: proot.tar.gz

release:
needs: build
runs-on: ubuntu-20.04
steps:
- name: Download Artifact
uses: actions/download-artifact@v2
with:
name: dist
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CURRENT_DATE: ${{ github.event.push.timestamp }}
with:
tag_name: nightly-${{ github.run_number }}
release_name: Nightly Build ${{ env.CURRENT_DATE }}
draft: false
prerelease: true
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./proot.tar.gz
asset_name: proot.tar.gz
asset_content_type: application/octet-stream
Loading