Skip to content

Commit

Permalink
Add upload
Browse files Browse the repository at this point in the history
  • Loading branch information
sebgod committed Nov 10, 2024
1 parent acd95b1 commit c2fd00c
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ jobs:
os: [windows-latest, ubuntu-22.04]
include:
- os: windows-latest
native: win-x64
arm64: win-arm64
- os: ubuntu-22.04
native: linux-x64
arm64: linux-arm64

runs-on: ${{ matrix.os }}
Expand All @@ -29,13 +31,20 @@ jobs:
- name: Build/Publish app (native)
run: dotnet publish -c ${{ matrix.configuration }}

- name: Upload Artifact (native)
uses: actions/upload-artifact@v4
with:
name: SkyiFi-Forwarder-${{ matrix.configuration }}-${{ matrix.native }}
path: 'bin/${{ matrix.configuration }}/net8.0/${{ matrix.native }}/publish/'
retention-days: 5

- name: Install prerequisites for Linux ARM64 cross-compile
run: |
sudo dpkg --add-architecture arm64
sudo bash -c 'cat > /etc/apt/sources.list.d/arm64.list <<EOF
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy main restricted
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe multiverse
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ $(lsb_release -sc 2>/dev/null) main restricted
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ $(lsb_release -sc 2>/dev/null)-updates main restricted
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ $(lsb_release -sc 2>/dev/null)-backports main restricted universe multiverse
EOF'
sudo sed -i -e 's/deb http/deb [arch=amd64] http/g' /etc/apt/sources.list
sudo sed -i -e 's/deb mirror/deb [arch=amd64] mirror/g' /etc/apt/sources.list
Expand All @@ -44,4 +53,11 @@ jobs:
if: runner.os == 'Linux'

- name: Build/Publish app (arm64)
run: dotnet publish -c ${{ matrix.configuration }} -r ${{ matrix.arm64 }}
run: dotnet publish -c ${{ matrix.configuration }} -r ${{ matrix.arm64 }}

- name: Upload Artifact (arm64)
uses: actions/upload-artifact@v4
with:
name: SkyiFi-Forwarder-${{ matrix.configuration }}-${{ matrix.arm64 }}
path: 'bin/${{ matrix.configuration }}/net8.0/${{ matrix.arm64 }}/publish/'
retention-days: 5

0 comments on commit c2fd00c

Please sign in to comment.