From 71deb31b2393bbf1ee031ac87ba4947bfa020bd0 Mon Sep 17 00:00:00 2001 From: Ethan Roseman Date: Sun, 2 Jan 2022 00:39:44 +0900 Subject: [PATCH 1/4] attempt at CI --- .github/workflows/build.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..5568e6b2 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,38 @@ +name: Build and release agbcc + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install dependencies (Ubuntu) + shell: bash + run: | + sudo apt-get update + sudo apt-get install -y gcc-arm-none-eabi binutils-arm-none-eabi + - name: Build + shell: bash + run: | + sh build.sh + - name: Install to temp dir + shell: bash + run: | + sh install.sh TEMPDIR + - name: Create release archive + shell: bash + run: | + tar -czf agbcc.tar.gz TEMPDIR/* + - name: Upload archive + uses: actions/upload-artifact@v2 + with: + name: agbcc.tar.gz + path: | + agbcc.tar.gz + - name: Update release + uses: johnwbyrd/update-release@v1.0.0 + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} + with: + token: ${{ secrets.GITHUB_TOKEN }} + files: agbcc.tar.gz From 39c71b7a032bcdb215ee330c3359872b5e8af21e Mon Sep 17 00:00:00 2001 From: Ethan Roseman Date: Sun, 2 Jan 2022 00:46:30 +0900 Subject: [PATCH 2/4] dir layout --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5568e6b2..fc77d00e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,7 @@ jobs: - name: Create release archive shell: bash run: | - tar -czf agbcc.tar.gz TEMPDIR/* + tar -czf agbcc.tar.gz -C TEMPDIR/tools/agbcc * - name: Upload archive uses: actions/upload-artifact@v2 with: From 8d62e3c5a187fd50dc7b148057748bf1d1112463 Mon Sep 17 00:00:00 2001 From: Ethan Roseman Date: Sun, 2 Jan 2022 00:50:36 +0900 Subject: [PATCH 3/4] attempt 2 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fc77d00e..0aba4080 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,7 @@ jobs: - name: Create release archive shell: bash run: | - tar -czf agbcc.tar.gz -C TEMPDIR/tools/agbcc * + tar -czf agbcc.tar.gz -C TEMPDIR/tools/agbcc $(ls .) - name: Upload archive uses: actions/upload-artifact@v2 with: From 65164f43a3baae17384713d5a814c0426538e315 Mon Sep 17 00:00:00 2001 From: Ethan Roseman Date: Sun, 2 Jan 2022 01:00:42 +0900 Subject: [PATCH 4/4] got em --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0aba4080..516dd77f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,7 @@ jobs: - name: Create release archive shell: bash run: | - tar -czf agbcc.tar.gz -C TEMPDIR/tools/agbcc $(ls .) + tar -C TEMPDIR/tools/agbcc -czf agbcc.tar.gz bin include lib - name: Upload archive uses: actions/upload-artifact@v2 with: