Skip to content

Commit

Permalink
Switch to wonderful toolchain for CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
aronson committed Oct 10, 2024
1 parent f25d12c commit 82ac91e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
name: Build GBA ROM and add it to the release
needs: create-release
container:
image: niceluigi/apotris-dka
image: niceluigi/wf-gba
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
31 changes: 31 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Alpine is slim
FROM docker.io/library/alpine

# Set environment variables
ENV WONDERFUL_TOOLCHAIN=/opt/wonderful
ENV PATH=/opt/wonderful/bin:$PATH

# Install required packages
RUN apk add --no-cache \
bash \
python3 \
git \
make \
ca-certificates \
curl

# Create the /opt/wonderful directory
RUN mkdir -p /opt/wonderful

# Fail next command if pipe fails
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

# Download and extract the bootstrap
RUN arch=$(arch) && curl -L https://wonderful.asie.pl/bootstrap/wf-bootstrap-$arch.tar.gz | tar xzvf - -C /opt/wonderful

# Synchronize and update wf's package manager
RUN wf-pacman -Syu
RUN wf-pacman -S --noconfirm target-gba thirdparty-blocksds-toolchain

# Set the default command
CMD ["/bin/bash"]

0 comments on commit 82ac91e

Please sign in to comment.