Skip to content

Commit

Permalink
Enabled build for tags again
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmoswafer committed Feb 8, 2024
1 parent 553465d commit eedf371
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/build-bin.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Build and Release
name: Nightly build

on:
push:
tags:
- '*'
- 'v*'

jobs:
build:
Expand All @@ -24,20 +24,21 @@ jobs:
make -C src loader.elf loader-m32.elf build.h
make -C src proot
- name: Create a package
run: |
mkdir -v dist
cd src && tar -zcvf ../dist/proot.tar.gz 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: dist/proot.tar.gz
path: proot.tar.gz

release:
needs: build
Expand All @@ -52,9 +53,10 @@ jobs:
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CURRENT_DATE: ${{ github.event.push.timestamp }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
draft: false
prerelease: false
- name: Upload Release Asset
Expand All @@ -63,6 +65,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/proot.tar.gz
asset_path: ./proot.tar.gz
asset_name: proot.tar.gz
asset_content_type: application/octet-stream
3 changes: 2 additions & 1 deletion .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
build:
if: true
runs-on: ubuntu-20.04
steps:
- name: Check out the code
Expand All @@ -26,7 +27,7 @@ jobs:
- name: Run the test suite
run: make -C test
if: false
if: true

- name: Create a package
run: |
Expand Down

0 comments on commit eedf371

Please sign in to comment.