Skip to content

Commit

Permalink
feat: Remove more bloat from github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpenedblade committed Jul 23, 2023
1 parent 7af184e commit 1d448b2
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,26 @@ jobs:
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo docker image prune --all --force
sudo rm -rf /home/linuxbrew
sudo apt-get remove -y --purge fonts-noto-color-emoji subversion ssh \
sshpass g++ gcc gnupg2 imagemagick jq libmagic-dev \
libmagickcore-dev libmagickwand-dev libssl-dev \
mercurial openssh-client p7zip-full ftp bison
sudo apt-get autoremove -y
- name: "Checkout"
uses: actions/checkout@v3

- name: "Build"
run: |
mkdir -p _output
docker run -t --privileged \
-v "$PWD":/repo \
-e PACKAGE \
fedora:38 /bin/bash -c "/repo/build-packages.sh"
env:
env:
PACKAGE: ${{ matrix.package }}

- name: "Check Build Artifacts"
Expand All @@ -44,13 +52,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v3
uses: actions/checkout@v3

- name: "Download Build Artifacts"
uses: actions/download-artifact@v3
with:
path: artifacts

- name: "Create Unified Artifact"
run: |
mkdir _output
Expand All @@ -65,7 +73,7 @@ jobs:
fedora:38 /bin/bash -c "/repo/sign-packages.sh"
env:
RPM_SIGNING_PRIVATE_KEY_B64: ${{ secrets.RPM_SIGNING_PRIVATE_KEY_B64 }}

- name: "Upload Unified Artifact"
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 1d448b2

Please sign in to comment.