diff --git a/.circleci/DATESTAMP b/.circleci/DATESTAMP deleted file mode 100644 index bc96198..0000000 --- a/.circleci/DATESTAMP +++ /dev/null @@ -1 +0,0 @@ -20200215-2 diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 1cb8f03..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,30 +0,0 @@ -version: 2 - -defaults: &defaults - working_directory: ~/demoscene-toolchain - docker: - - image: cahirwpz/demoscene-toolchain:latest - -jobs: - m68k: - <<: *defaults - steps: - - checkout - - restore_cache: - keys: - - m68k-cache-{{ .Branch }}-{{ checksum ".circleci/DATESTAMP" }} - - run: './toolchain-m68k --quiet download' - - save_cache: - key: m68k-cache-{{ .Branch }}-{{ checksum ".circleci/DATESTAMP" }} - paths: - - .build-m68k - - run: './toolchain-m68k --quiet build --prefix=/usr/local' - - run: 'tar cvzf /demoscene-toolchain.tar.gz /usr/local' - - store_artifacts: - path: /demoscene-toolchain.tar.gz - -workflows: - version: 2 - demoscene-toolchain: - jobs: - - m68k diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml new file mode 100644 index 0000000..00b34cc --- /dev/null +++ b/.github/workflows/workflow.yml @@ -0,0 +1,28 @@ +name: Demoscene Toolchain + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + container: cahirwpz/demoscene-toolchain:latest + + steps: + - uses: actions/checkout@v3 + with: + submodules: true + + - name: Download archives + run: ./toolchain-m68k --quiet download + + - name: Build toolchain + run: ./toolchain-m68k --quiet build --prefix=/usr/local + + - name: Archive toolchain + run: tar czf demoscene-toolchain.tar.gz /usr/local + + - name: Upload toolchain + uses: actions/upload-artifact@v3 + with: + name: demoscene-toolchain + path: demoscene-toolchain.tar.gz