-
Notifications
You must be signed in to change notification settings - Fork 28
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
Showing
2 changed files
with
31 additions
and
17 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 |
---|---|---|
|
@@ -11,7 +11,11 @@ on: | |
options: | ||
- dev | ||
- unstable | ||
- unstable-3.4 | ||
- unstable-3.5 | ||
- stable | ||
- stable-3.4 | ||
- stable-3.5 | ||
|
||
jobs: | ||
build: | ||
|
@@ -21,20 +25,20 @@ jobs: | |
- uses: actions/checkout@v3 | ||
|
||
# Install NodeJS environment (TODO: Update to 16 when v3.5 is out) | ||
- name: Set up NodeJs | ||
- name: Set up NodeJS | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 14 | ||
|
||
# Install .NET environment | ||
- name: Set up .NET 6 | ||
- name: Set up .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 6 | ||
|
||
# Install required tools | ||
- name: Install dependencies | ||
run: sudo apt install -y dpkg-sig | ||
run: sudo apt install -y dpkg-sig libxml2-utils | ||
|
||
# Import GPG key for package signing | ||
- name: Configure GPG key | ||
|
@@ -47,17 +51,27 @@ jobs: | |
- name: Build DSF packages | ||
run: | | ||
cd pkg | ||
./build.sh --signing-key=C406404B2459FE0B1C6CC19D3738126EDA91C86B --target-arch=armhf --dest-dir=./armhf | ||
./build.sh --signing-key=C406404B2459FE0B1C6CC19D3738126EDA91C86B --target-arch=arm64 --dest-dir=./arm64 | ||
./build.sh --signing-key=C406404B2459FE0B1C6CC19D3738126EDA91C86B --target-arch=armhf --dest-dir=./out | ||
./build.sh --signing-key=C406404B2459FE0B1C6CC19D3738126EDA91C86B --target-arch=arm64 --dest-dir=./out | ||
# Upload packages to pkg.duet3d.com | ||
# Upload armhf packages to pkg.duet3d.com | ||
- name: Upload package files | ||
uses: Creepios/[email protected].3 | ||
uses: Creepios/[email protected].5 | ||
with: | ||
host: pkg.duet3d.com | ||
port: 22 | ||
username: ${{ secrets.PKG_SSH_USER }} | ||
password: ${{ secrets.PKG_SSH_PASS }} | ||
privateKey: ${{ secrets.PKG_SSH_KEY }} | ||
localPath: ./pkg/armhf | ||
remotePath: /tmp/${{ inputs.target }} | ||
localPath: ./pkg/out | ||
remotePath: /var/www/pkg/dists/${{ inputs.target }}/armv7 | ||
|
||
# Refresh package lists if the dev target is selected | ||
- name: Refresh package lists | ||
if: inputs.target == 'dev' | ||
uses: appleboy/[email protected] | ||
with: | ||
host: pkg.duet3d.com | ||
username: ${{ secrets.PKG_SSH_USER }} | ||
key: ${{ secrets.PKG_SSH_KEY }} | ||
script: update-pkg-feed dev |
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