diff --git a/.gitea/workflows/Build_Release.yaml b/.gitea/workflows/Build_Release.yaml new file mode 100644 index 0000000..104e23f --- /dev/null +++ b/.gitea/workflows/Build_Release.yaml @@ -0,0 +1,67 @@ +name: Build & Release +run-name: ${{ gitea.actor }} is testing out Gitea Actions +on: + push: + tags: + - "v*" + +jobs: + Create-Release: + runs-on: linux-x86_64 + steps: + - name: Check out repository code + uses: actions/checkout@v3 + + - name: Installing Dependencies + run: sudo pacman -Sy zip libasound2-dev libxcb1-dev libxcb-xinput-dev libxcb-cursor-dev + + - name: Building/Compiling Project + run: | + cd ${{ gitea.workspace }} + cmake -DCMAKE_BUILD_TYPE=Debug -DLINUX_WINDOW_SYSTEM:STRING=XCB . + cmake --build . --config Debug + + - name: Zipping Binaries + run: zip ehs-linux-aarch64 libEHS.a StrToHash + + - uses: https://github.com/actions/setup-go@v4 + with: + go-version: '>=1.20.1' + + - name: Use Go Action + id: use-go-action + uses: https://gitea.com/actions/release-action@main + with: + files: |- + libEHS.a + api_key: '${{secrets.RELEASE_TOKEN}}' + + Linux-AARCH64-Build: + runs-on: linux-aarch64 + steps: + - name: Check out repository code + uses: actions/checkout@v3 + + - name: Installing Dependencies + run: sudo apt install -y zip libasound2-dev libxcb1-dev libxcb-xinput-dev libxcb-cursor-dev + + - name: Building/Compiling Project + run: | + cd ${{ gitea.workspace }} + cmake -DCMAKE_BUILD_TYPE=Debug -DLINUX_WINDOW_SYSTEM:STRING=XCB . + cmake --build . --config Debug + + - name: Zipping Binaries + run: zip ehs-linux-aarch64 libEHS.a StrToHash + + - uses: https://github.com/actions/setup-go@v4 + with: + go-version: '>=1.20.1' + + - name: Use Go Action + id: use-go-action + uses: https://gitea.com/actions/release-action@main + with: + files: |- + libEHS.a + api_key: '${{secrets.RELEASE_TOKEN}}' \ No newline at end of file diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml deleted file mode 100644 index 24ed86b..0000000 --- a/.gitea/workflows/demo.yaml +++ /dev/null @@ -1,39 +0,0 @@ -name: Raspberry Pi 4 Build -run-name: ${{ gitea.actor }} is testing out Gitea Actions -on: - push: - tags: - - "v*" - -jobs: - Explore-Gitea-Actions: - runs-on: linux-aarch64 - steps: - - run: echo "The job was automatically triggered by a ${{ gitea.event_name }} event." - - run: echo "This job is now running on a ${{ runner.os }} server hosted by Gitea!" - - run: echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - - name: Check out repository code - uses: actions/checkout@v3 - - run: echo "The ${{ gitea.repository }} repository has been cloned to the runner." - - - name: Installing Dependencies - run: sudo apt install -y libasound2-dev libxcb1-dev libxcb-xinput-dev libxcb-cursor-dev - - - name: Building/Compiling Project - run: | - cd ${{ gitea.workspace }} - cmake -DCMAKE_BUILD_TYPE=Debug -DLINUX_WINDOW_SYSTEM:STRING=XCB . - cmake --build . --config Debug - - - uses: https://github.com/actions/setup-go@v4 - with: - go-version: '>=1.20.1' - - name: Use Go Action - id: use-go-action - uses: https://gitea.com/actions/release-action@main - with: - files: |- - libEHS.a - api_key: '${{secrets.RELEASE_TOKEN}}' - - - run: echo "This job's status is ${{ job.status }}." \ No newline at end of file