This repository has been archived by the owner on Mar 28, 2024. It is now read-only.
forked from bestouff/genext2fs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andrew Fasano
committed
Dec 16, 2023
1 parent
a916fc7
commit 32fc88f
Showing
2 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Compile and Publish genext2fs | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build | ||
run: | | ||
docker run --rm -v $PWD:/app -w /app ubuntu:22.04 /app/build.sh | ||
tar -czvf genext2fs.tar.gz genext2fs | ||
- name: Save package | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: genext2fs | ||
path: build | ||
|
||
- name: Create release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: release_${{ github.sha }} | ||
release_name: Release ${{ github.ref }} | ||
body: | | ||
Release @${{ github.ref }} | ||
draft: true | ||
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: ./genext2fs.tar.gz | ||
asset_name: genext2fs.tar.gz | ||
asset_content_type: application/gzip | ||
|
||
- name: Publish release | ||
uses: StuYarrow/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
id: ${{ steps.create_release.outputs.id }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
set -eux | ||
|
||
# Add source URIs | ||
sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list | ||
apt-get update | ||
|
||
# Download dependencies | ||
apt build-dep -y genext2fs | ||
|
||
# Configure with libarchive | ||
./autogen.sh | ||
|
||
./configure --enable-libarchive | ||
|
||
# Build | ||
make -j$(nproc) |