-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
1 parent
80477e6
commit 8fb82cd
Showing
1 changed file
with
8 additions
and
6 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 |
---|---|---|
|
@@ -123,9 +123,9 @@ jobs: | |
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Download build arm64 build artifacts | ||
- name: Download build artifacts arm64 | ||
uses: actions/download-artifact@v3 | ||
# id: download-axolotl-arm64 ## What is the use of the id? | ||
# id: download-axolotl-arm64 | ||
with: | ||
name: build-axolotl-linux-arm64 | ||
path: target/aarch64-unknown-linux-gnu/release/axolotl | ||
|
@@ -138,7 +138,7 @@ jobs: | |
git fetch --all --tags | ||
echo "TAG=$(git tag | tail --lines=1)" >> $GITHUB_ENV | ||
- name: Set package version | ||
- name: Set release version | ||
run: | | ||
echo "RELEASE_VERSION=$(echo ${{ env.TAG }} | sed 's/v//')" >> $GITHUB_ENV | ||
|
@@ -150,16 +150,18 @@ jobs: | |
cp $GITHUB_WORKSPACE/deb/LICENSE $GITHUB_WORKSPACE/axolotl-${{ env.RELEASE_VERSION }}/LICENSE | ||
cd $GITHUB_WORKSPACE/axolotl-${{ env.RELEASE_VERSION }} && debmake --yes --email [email protected] --fullname "Arno Nuehm" --monoarch | ||
sed -i '3d;4d' $GITHUB_WORKSPACE/axolotl-${{ env.RELEASE_VERSION }}/debian/changelog | ||
sed -e '3 {r $GITHUB_WORKSPACE/docs/CHANGELOG.md' -e 'd}' $GITHUB_WORKSPACE/axolotl-${{ env.RELEASE_VERSION }}/debian/changelog | ||
sed -i ':a;N;$!ba;s/<preferred name and address to reach the upstream project>/Aaron <[email protected]>/g' $GITHUB_WORKSPACE/axolotl-${{ env.RELEASE_VERSION }}/debian/changelog | ||
awk -i inplace 'NR == 3 {print " * See upstream changelog below."} {print}' $GITHUB_WORKSPACE/axolotl-${{ env.RELEASE_VERSION }}/debian/changelog | ||
echo >> $GITHUB_WORKSPACE/axolotl-${{ env.RELEASE_VERSION }}/debian/changelog | ||
cat $GITHUB_WORKSPACE/docs/CHANGELOG.md >> $GITHUB_WORKSPACE/axolotl-${{ env.RELEASE_VERSION }}/debian/changelog | ||
sed -i 's/<preferred name and address to reach the upstream project>/Aaron <[email protected]>/' $GITHUB_WORKSPACE/axolotl-${{ env.RELEASE_VERSION }}/debian/copyright | ||
sed -i 's/<url:\/\/example.com>/https:\/\/github.com\/nanu-c\/axolotl/' $GITHUB_WORKSPACE/axolotl-${{ env.RELEASE_VERSION }}/debian/copyright | ||
cp $GITHUB_WORKSPACE/axolotl-${{ env.RELEASE_VERSION }}/debian/changelog $GITHUB_WORKSPACE/deb/ | ||
cp $GITHUB_WORKSPACE/axolotl-${{ env.RELEASE_VERSION }}/debian/copyright $GITHUB_WORKSPACE/deb/ | ||
- name: Build package Debian arm64 | ||
run: cargo deb --target=aarch64-unknown-linux-gnu --no-build | ||
|
||
- name: Upload Debian package artifact (arm64) | ||
- name: Upload package artifact Debian arm64 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Axolotl-Debian-arm64-package | ||
|