File tree Expand file tree Collapse file tree 2 files changed +62
-3
lines changed Expand file tree Collapse file tree 2 files changed +62
-3
lines changed Original file line number Diff line number Diff line change 11FROM ubuntu:22.04
2+
23RUN apt-get update && apt-get upgrade -y && \
34 apt-get install -y make wget xz-utils && \
4- wget -qO- "https://developer.arm.com/-/media/Files/downloads/gnu-a/10.2-2020.11/binrel/gcc-arm-10.2-2020.11-x86_64-arm-none-linux-gnueabihf.tar.xz?revision=d0b90559-3960-4e4b-9297-7ddbc3e52783&rev=d0b9055939604e4b92977ddbc3e52783&hash=0074C1529DE90C98726B80ED3EE0776C" | tar -xJ && \
5- mv gcc-arm-* /usr/local/bin && \
6- printf 'export PATH=$PATH:%s\n ' /usr/local/bin/gcc-arm-*/bin >> ~/.bashrc && \
5+ wget -qO- "https://developer.arm.com/-/media/Files/downloads/gnu-a/10.2-2020.11/binrel/gcc-arm-10.2-2020.11-x86_64-arm-none-linux-gnueabihf.tar.xz?revision=d0b90559-3960-4e4b-9297-7ddbc3e52783&rev=d0b9055939604e4b92977ddbc3e52783&hash=0074C1529DE90C98726B80ED3EE0776C" \
6+ | tar -xJf - --strip-components=1 -C /usr/local && \
77 apt-get autoremove && apt-get clean && \
88 rm -rf ~/.cache /tmp/*
Original file line number Diff line number Diff line change 1+ ---
2+ name : ci
3+ on :
4+ merge_group :
5+ push :
6+ branches :
7+ - master
8+ paths-ignore :
9+ - ' releases/*'
10+ pull_request :
11+ branches :
12+ - " **"
13+ paths-ignore :
14+ - ' releases/*'
15+ workflow_dispatch :
16+
17+ permissions :
18+ contents : read
19+
20+ jobs :
21+ build :
22+ runs-on : ubuntu-latest
23+ permissions :
24+ contents : read
25+ steps :
26+ - uses : actions/checkout@v4
27+ with :
28+ persist-credentials : false
29+ - uses : docker/setup-buildx-action@v3
30+ id : buildx
31+ - name : Run docker build for .devcontainer/Dockerfile
32+ uses : docker/build-push-action@v6
33+ env :
34+ DOCKER_BUILD_SUMMARY : false
35+ with :
36+ builder : ${{ steps.buildx.outputs.name }}
37+ file : .devcontainer/Dockerfile
38+ tags : mister-devel/build:stable
39+ load : true
40+ cache-from : type=gha,scope=${{ github.workflow }}
41+ cache-to : type=gha,scope=${{ github.workflow }},mode=max
42+ - name : Run make MiSTer using devcontainer
43+ run : |
44+ docker run --name=build \
45+ -v $PWD:/usr/src \
46+ -w /usr/src \
47+ mister-devel/build:stable \
48+ make
49+ FILENAME="MiSTer_$(date +'%Y%m%d')"
50+ mv -vi MiSTer "releases/${FILENAME}"
51+ echo "filename=$FILENAME" >>"$GITHUB_OUTPUT"
52+ id : build
53+ - name : " Upload ${{ steps.build.outputs.filename }} Artifact"
54+ uses : actions/upload-artifact@v4
55+ with :
56+ name : " ${{ steps.build.outputs.filename }}"
57+ path : " releases/${{ steps.build.outputs.filename }}"
58+ if-no-files-found : error
59+ retention-days : 7
You can’t perform that action at this time.
0 commit comments