54
.gitea/workflows/build.yaml
Normal file
54
.gitea/workflows/build.yaml
Normal file
@@ -0,0 +1,54 @@
|
||||
name: Build App
|
||||
run-name: ${{ gitea.actor }} is building
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Build:
|
||||
runs-on: ubuntu-latest-real
|
||||
steps:
|
||||
- name: Update
|
||||
run: |
|
||||
sudo apt-get update -y -qq
|
||||
sudo apt-get install zip
|
||||
sudo sh -c "echo '192.168.1.253 descartes.local' >> /etc/hosts"
|
||||
sudo sh -c "echo '192.168.1.253 build.ladose.net' >> /etc/hosts"
|
||||
sudo apt install -y rustup
|
||||
sudo rustup target add aarch64-unknown-linux-gnu
|
||||
|
||||
- name: GetDNS
|
||||
run: |
|
||||
cat /etc/resolv.conf
|
||||
|
||||
- run: echo "Build."
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Restore Deps
|
||||
run : |
|
||||
cd LaDOSE.Src/
|
||||
dotnet restore LaDOSE.linux.sln
|
||||
- name: Build
|
||||
run: |
|
||||
cargo build --release
|
||||
cargo build --release --target=aarch64-unknown-linux-gnu
|
||||
- name: Zip file
|
||||
run: |
|
||||
zip -rj build.zip ./target/release/
|
||||
zip -rj build-Aarch64.zip ./target/release/
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
path: build-linux64.zip
|
||||
name: build-linux64.zip
|
||||
retention-days: 30
|
||||
overwrite: true
|
||||
- name: Release
|
||||
if: github.ref_name == 'master'
|
||||
uses: akkuman/gitea-release-action@v1
|
||||
env:
|
||||
with:
|
||||
tag_name: release-${{ steps.date.outputs.date }}
|
||||
files: |-
|
||||
build-winx64.zip
|
||||
build-linux64.zip
|
||||
|
||||
Reference in New Issue
Block a user