Skip to content

Commit

Permalink
changing CI file again brruh(yaml s***s)
Browse files Browse the repository at this point in the history
  • Loading branch information
PumpkinXD committed Apr 3, 2024
1 parent b4c7e43 commit ea766fb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 44 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,19 @@ jobs:
- name: Build with xmake
run: xmake -y

- name: Extract Platform and Arch
run: |
plat=$(xmake show | grep plat | awk '{print $3}')
arch=$(xmake show | grep arch | awk '{print $3}')
mode=$(xmake show | grep mode | awk '{print $3}')
echo "PLATFORM=$plat" >> $GITHUB_ENV
echo "ARCH=$arch" >> $GITHUB_ENV
echo "MODE=$mode" >> $GITHUB_ENV
- name: Move the binary
run: xmake install -o build/binary

- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: screenfetch-c_${{ env.PLATFORM }}_${{ env.MODE }}_Artifact_Files
path: build/${{ env.PLATFORM }}
name: screenfetch-c_artifact
path: build/build/binary
- name: Upload Build Artifacts to GitHub Release
uses: svenstaro/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/${{ env.PLATFORM }}/${{ env.ARCH }}/${{ env.MODE }}/screenfetch-c.com
file: build/binary/screenfetch-c.com
asset_name: screenfetch-c.com
tag: ${{ github.ref }}
overwrite: true
14 changes: 4 additions & 10 deletions .github/workflows/ci_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,14 @@ jobs:
- name: Build with xmake
run: xmake -y

- name: Extract Platform and Arch
run: |
plat=$(xmake show | grep plat | awk '{print $3}')
arch=$(xmake show | grep arch | awk '{print $3}')
mode=$(xmake show | grep mode | awk '{print $3}')
echo "PLATFORM=$plat" >> $GITHUB_ENV
echo "ARCH=$arch" >> $GITHUB_ENV
echo "MODE=$mode" >> $GITHUB_ENV
- name: Move the binary
run: xmake install -o build/binary

- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: screenfetch-c_${{ env.PLATFORM }}_${{ env.MODE }}_Artifact_Files
path: build/${{ env.PLATFORM }}
name: screenfetch-c_Artifact
path: build/binary

- name: Runs on ubuntu-latest
run: xmake run
23 changes: 0 additions & 23 deletions centos_logo_neofetch.txt

This file was deleted.

0 comments on commit ea766fb

Please sign in to comment.