mirror of
https://github.com/brain-hackers/brain-config.git
synced 2025-12-25 06:34:17 +09:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bdd36153eb | ||
|
|
be4af19fb8 | ||
|
|
fcbed7d6fa | ||
|
|
ab773c60b2 | ||
|
|
6dacfaef74 | ||
|
|
47b00abe54 |
9
.github/archive_name.py
vendored
Normal file
9
.github/archive_name.py
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
with open('./debian/brain-config/DEBIAN/control', 'r') as f:
|
||||||
|
for l in f.readlines():
|
||||||
|
if l.startswith('Version:'):
|
||||||
|
print(f'brain-config_{l.replace("Version: ", "").rstrip()}_all.deb', end='')
|
||||||
|
break
|
||||||
|
else:
|
||||||
|
raise RuntimeError('Version line was not found')
|
||||||
92
.github/workflows/build.yml
vendored
92
.github/workflows/build.yml
vendored
@@ -35,62 +35,46 @@ jobs:
|
|||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Create release
|
- name: Create release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ env.RELEASE_TAG_NAME }}
|
|
||||||
release_name: ${{ steps.release_name.outputs.name }}
|
|
||||||
body_path: CHANGES.md
|
body_path: CHANGES.md
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: true
|
prerelease: true
|
||||||
|
name: ${{ steps.release_name.outputs.name }}
|
||||||
|
tag_name: ${{ env.RELEASE_TAG_NAME }}
|
||||||
|
|
||||||
# build-linux:
|
build-linux:
|
||||||
# runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
# needs: [create_release]
|
needs: [create_release]
|
||||||
# steps:
|
steps:
|
||||||
# - uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
# with:
|
with:
|
||||||
# submodules: true
|
submodules: true
|
||||||
# - name: Workaround for apt update failure
|
- name: Workaround for apt update failure
|
||||||
# run: sudo rm /etc/apt/sources.list.d/github_git-lfs.*
|
run: sudo rm /etc/apt/sources.list.d/github_git-lfs.*
|
||||||
# - name: Install deps
|
- name: Prepare packaging & packagecloud CLI
|
||||||
# run: sudo apt update && sudo apt install build-essential bison flex libncurses5-dev gcc-arm-linux-gnueabi qemu-user-static debootstrap python3-pip
|
run: |
|
||||||
# - name: Upgrade pip and setuptools
|
sudo apt update
|
||||||
# run: pip3 install -U pip setuptools
|
sudo apt install debhelper ruby-dev
|
||||||
# - name: Install listconfig
|
sudo gem install package_cloud
|
||||||
# run: pip3 install listconfig
|
- name: Build the Debian package
|
||||||
# - name: Configure for Linux
|
run: ./debian/rules build && sudo ./debian/rules binary
|
||||||
# run: make ldefconfig
|
- name: Generate archive name
|
||||||
# - name: Build Linux
|
id: archive_name
|
||||||
# run: make lbuild
|
run: echo ::set-output name=name::$(python .github/archive_name.py)
|
||||||
# - name: Setup releases
|
- name: Upload the package to GitHub
|
||||||
# id: release_name
|
uses: actions/upload-release-asset@v1
|
||||||
# run: |
|
env:
|
||||||
# mkdir release
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# cp ./linux-brain/arch/arm/boot/dts/imx28-pwsh*.dtb release/
|
with:
|
||||||
# cp ./linux-brain/arch/arm/boot/zImage release/zImage
|
upload_url: ${{ needs.create_release.outputs.upload_url }}
|
||||||
# zip -r release.zip release/
|
asset_path: ../${{ steps.archive_name.outputs.name }}
|
||||||
# - name: Generate archive name
|
asset_name: ${{ steps.archive_name.outputs.name }}
|
||||||
# id: archive_name
|
asset_content_type: application/vnd.debian.binary-package
|
||||||
# run: echo ::set-output name=name::linux-${GITHUB_REF/refs\/*s\//}
|
- name: Upload the package to packagecloud
|
||||||
# - name: Upload release.zip
|
env:
|
||||||
# uses: actions/upload-release-asset@v1
|
USERNAME: brainhackers
|
||||||
# env:
|
REPO: brainux/any/any
|
||||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
|
||||||
# with:
|
run: |
|
||||||
# upload_url: ${{ needs.create_release.outputs.upload_url }}
|
package_cloud push "${USERNAME}/${REPO}" "../${{steps.archive_name.outputs.name}}"
|
||||||
# asset_path: release.zip
|
|
||||||
# asset_name: ${{ steps.archive_name.outputs.name }}.zip
|
|
||||||
# asset_content_type: application/zip
|
|
||||||
# - name: Generate listconfig
|
|
||||||
# run: listconfig ./linux-brain/Kconfig ./linux-brain/.config > listconfig
|
|
||||||
# - name: Upload listconfig
|
|
||||||
# uses: actions/upload-release-asset@v1
|
|
||||||
# env:
|
|
||||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
# with:
|
|
||||||
# upload_url: ${{ needs.create_release.outputs.upload_url }}
|
|
||||||
# asset_path: listconfig
|
|
||||||
# asset_name: listconfig
|
|
||||||
# asset_content_type: text/plain
|
|
||||||
|
|||||||
Reference in New Issue
Block a user