-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to wonderful toolchain for CI/CD
- Loading branch information
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |